Answer the question
In order to leave comments, you need to log in
Can a Telegram bot send a message to a person with whom they have not corresponded before?
In general, it is necessary to make a bot that sends a message to users who have joined the channel. Just send_message(user_id, 'text') doesn't work - it throws a 'chat not found' error. I work with PyTelegramBotApi, but if you can solve it using some other library, it's also okay.
Thank you!
Answer the question
In order to leave comments, you need to log in
A bot can't "send a message to a person they haven't corresponded with before". This is a Telegram limitation, not a library one.
No, he can not. The user must be the first to start a conversation with the bot.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question