Technical specification for a 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. Support link and button binding 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:
• The text may contain scripts like: [contact], [website], [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.