I want to get messages from a particular channel in Telegram using its API. I know that messages.getMessages
is for fetching messages in a chat. But can I use this function to do what I mentioned?
In other words, How can I get messages from a Telegram channel?
Question posted in Telegram API
A comprehensive official documentation can be found here.
A comprehensive official documentation can be found here.
2
Answers
you must use layer 40 (or above) of the api in order to use channels. This layer has an specific method to fetch messages from channels
I haven’t tested old
messages.getMessages
method, but I guess it won’t work for channels.Hope this helps.
To work around the channels you should use channel methods. A list of channel methods are available here : https://github.com/telegramdesktop/tdesktop/blob/master/Telegram/SourceFiles/mtproto/scheme.tl