Telegram bot for creating an announcement
This code implements a Telegram bot in Python using the python-telegram-bot library.
The bot is designed to create advertisements for the sale of goods by users, followed by moderation and publication in a specified channel or group.
Main functions:
1. Collecting data from the user:
The bot sequentially asks for:
- product photo
- title
- description
- condition
- price
- seller's information
For selecting the condition, a keyboard with options is offered: "New" and "Used"
2. Sending for moderation:
After entering the data, the bot forms the advertisement and sends it to the moderators' group with the photo and text in Markdown format.
It adds "Publish" and "Reject" buttons.
3. Processing moderator actions:
When "Publish" is pressed:
The advertisement is published in the channel.
The user receives a notification "Your advertisement has been successfully published."
The bot is designed to create advertisements for the sale of goods by users, followed by moderation and publication in a specified channel or group.
Main functions:
1. Collecting data from the user:
The bot sequentially asks for:
- product photo
- title
- description
- condition
- price
- seller's information
For selecting the condition, a keyboard with options is offered: "New" and "Used"
2. Sending for moderation:
After entering the data, the bot forms the advertisement and sends it to the moderators' group with the photo and text in Markdown format.
It adds "Publish" and "Reject" buttons.
3. Processing moderator actions:
When "Publish" is pressed:
The advertisement is published in the channel.
The user receives a notification "Your advertisement has been successfully published."