The main purpose of this bot is to organize a channel where some users could read reports from their reportee like a news feed but reporters can't see reports of each other.
- Install requirements:
pip install -r .\requirements.txt
- Make file
settings.ini
according to thesettings.example.ini
- Specify
BOT_API_KEY
andTARGET_CHANNEL_ID
insettings.ini
python .\run_bot.py
For first launch users can't send messages to the channel. First of all you need to promote one user to admin level:
- Open chat with you bot and write
/start
- Press
Authorization request to send reports
button - Edit
users.json
in project's root dirrectory and manually change level of chosen user from"level": "pending"
to"level": "admin"
and then save the file - In telegram application press
help
button to update menu - Now you are admin
For now new users can request for authorization to write to channel and admin user can get list or requests and promote promote them to reporter
status.
/display_requests
button:
Requested authorization to send reports:
1. @some_user ID 35XXXX761 - Some User;
/make_reporter 35XXXX761
User status changed
Now user has reporter
level and can write messages to the channel.
Users with admin
and reporter
level can write messages to the channel
- Press
Send message to the channel
- Write the message and add necessary files or images and press send
- Confirm sending with
Confirm
button