Answer the question
In order to leave comments, you need to log in
How can a telegram bot access messages?
How can a telegram bot access a user's messages and make a mailing list?
The point is that there are several channels and it is necessary, as soon as new data appears in one of them, to immediately merge them into another channel, or into a bot.
How is this done in C#? (Better Asp.Net Core)
Answer the question
In order to leave comments, you need to log in
Bots have privacy policies configured by default, you need to give access to all messages in BotFather in the bot settings - Privacy Mode. The API has more information .
In order for the bot to be able to send messages, you must have a ChatId (in fact, the channel is also a chat, but I'm not sure if this will work, you need to check). And also make sure that the bot will have access to the rights to send messages to the
PS channel
Alternatively, instead of the Bot Api, you can use the client API, there will definitely be access to all messages and send them to any channels
It doesn't matter what language you write in, all information about requests is in the telegram API.
As far as I know, bots do not know how to read channels, otherwise the cheats would be overly large. Bots can only read private messages and groups in which they are members.
Well, advice, do not pull messages immediately into your "channels". Do a cutoff of 10-15 minutes. To not take the mistakes of others. Usually 10-15 minutes is enough for the author to correct his jambs when publishing.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question