Create your Telegram Bot
Creating the bot is a straightforward process. Talk to BotFather and follow a few simple steps. At the end of the bot creation process, you'll get your authorization token - store it since you will use it later.

Create your Telegram channel
The channel where all the discounts will be posted - you can re-use a channel you already have or create a new one.
You must do this from you telegram client (from your PC or smarthphone). Keep note of the address you generate, e.g. https://t.me/your_channel_name.

Promote your bot as Administrator
The bot needs the full ownership of the channel - go to the channel settings in the Administrator section, and search and add your bot as adimistrator.

Create your Bitly account
Bitly is the tool used by Amazon to get the amzn.co shortened URLs.
- Create an account on bitly.com
- Follow this short guide on How do I generate an OAuth access token for the Bitly API? and save the bitly access token for later.

Create your Amazon affiliate account
Depending on your region of choice, you have to create an account on a different website, eg:
- 🇮🇹 Programma Affiliazione Amazon
- 🇺🇸 Amazon Associates
- 🇩🇪 Amazon PartnerNet
- ...


Configure & control the bot
With the credentials provided, login at The login page and fill the Bot settings.
Bot settings
Insert:- The bot name without the @
- The bot Token
- The start and stop hour (the bot will post on the channel you created only during these hour range, in the region time zone)
- Add as many keywords you want: these are the keywords that your bot will use to crawl Amazon and create its product database.

Region, Amazon, Bitly
The configuration of the Region, Amazon, and Bitly sections are trivial. The Region timezone controls the hours in which you'll post the messages in your channel. All the other settings are easy to understand.
You have to fill every fields using the data you got from the Amazon PAPI and bitly API registration.
Telegram configuration
The most important field, is the Channel ID - this is the id (with the @, like @e_offerte) of the channel where the discounts will be automatically posted.All the other settings are related to the messages sent to the bot user / discoiunt format. Certain messages support markdown syntax and these messages contains variable fields to use to create custom messages and styles.

Starting & Stopping the Bot
The Bot Control sections allows you to start and stop the bot with one click - you can also see the raw log to check what the bot is currently doing (not easy to understand, reserved for developers).
