Technical specification for the Telegram bot
Goal:
Create a Telegram bot that will:
1. Take posts from one channel (source).
2. Repost them to one or several other channels (receivers) on behalf of the Telegram account.
3. Support:
• Text.
• Up to 10 photos.
• Premium emojis.
4. Replace links in posts according to specified rules.
5. Add inline buttons according to special scripts in the text.
6. Maintain link and button bindings for each receiver separately.
Working with links:
• There may be links in the post text that need to be replaced.
• For each receiver channel, the bot should use its own link.
• Example: if the post contains the link https://site.com, then:
• For Channel A replace with https://site.com/a
• For Channel B replace with https://site.com/b
Working with buttons:
• There may be scripts in the text like: [contact], [site], [order].
• The bot should:
• Remove the script from the text.
• Add a button with the required text and the required link.
• Buttons are configured separately for each receiver channel.