LucaTNT/telegram-bot-amazon

Automatically get AMAZON_TLD

Opened this issue · 3 comments

Actually you must set AMAZON_TLD otherwise all links will be putted as amazon.com, to have the bot automatically working on all TLDs can we just read the TLD from the link we are sending instead of forcely put a custom one?

That is correct in principle, but AFAIK tags are TLD-specific, so this would potentially lead to invalid tags being applied to links.

that's true, but in my case all tags are equal so at least as a fast implementation can be okay to auto-get the TLD

Would be great to have this function for users that have Onelink where the tag is the same. Maybe with a toggle?