Answer the question
In order to leave comments, you need to log in
How to combine bot and channel functions in one telegram bot in aiogram?
Good afternoon.
New to python and telegram-bots. The task is to combine the functions of the bot and the channel in one bot\channel. Namely, so that the administrator of the bot \ channel has the ability to create publications that all users will see, while the bot responds to user commands.
The bot is ready and working on aiogram, responds to commands, tried to add it to the channel, but on the channel does not respond to commands. I don't know what to do, a google search turned up no results.
I don't attach the code, because there is nothing special in it, simple handlers "@dp.message_handler(commands=['start'])".
Answer the question
In order to leave comments, you need to log in
Found a solution. You need to create a database for the bot, where user data will be written after the /start command. Through the admin panel or the command to create a post, sending it via "await bot.send_message/send_photo" to users registered in the database.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question