How to use Telegram API without a bot?

I do not need a response bot.
I want to just call read-only to read the channel story. I probably need the https://core.telegram.org/method/messages.getHistory method, but the documentation https://core.telegram.org/api#getting-started doesn't even explain the protocol.
The protocol, as I understand it, is pretty trivial, and I have to use some minimal shell, but all the examples / articles I managed to find a link to https://github.com/atipugin/telegram-bot-ruby but I do not need a bot.

+5
source share
1 answer

To use Telegram without a bot, you must work with the Telegram low-level MTProto . There are MTProto libraries for Python , JavaScript, and even for PHP . See examples of getting chat history with these libraries here , here and here.

But it seems that there is no Ruby gem for this - failure, you must either create the MTProto Ruby gem yourself, or transfer this functionality to another service written in the language that the MTProto library has.

+6
source

Source: https://habr.com/ru/post/1276039/


All Articles