Good afternoon. I am writing a bot in C#. Can you

tell me if it is possible to connect the bot to a channel so that it finds the necessary articles by hashtag and copies links to them?

2 ответов

7 просмотров

The Telegram Bot API cannot retrieve messages that were already posted. To overcome this limitation, you can add the bot to the channel and listen to the channel's updates. When the bot detects a new message, save the message corresponding to its link or ID in database. This way, you can search for hashtags within the database of saved messages.

Tbf you can try mtproto way

Похожие вопросы

Карта сайта