Nakilon
Nakilon

Reputation: 35084

How do I use Telegram API without a bot?

I don't need a reply bot.
I want to just make a read-only call to read the channel history. Probably I need †he method https://core.telegram.org/method/messages.getHistory but documentation https://core.telegram.org/api#getting-started does not even explain the protocol.
The protocol as I understand is pretty custom and I should use some minimal wrapper but all examples/articles I've managed to find link to https://github.com/atipugin/telegram-bot-ruby but I don't need a bot.

Upvotes: 11

Views: 11032

Answers (2)

zaPlayer
zaPlayer

Reputation: 862

You can use tdlib-ruby

gem 'tdlib-ruby'

Upvotes: 0

user9576427
user9576427

Reputation:

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

But it seems that there is no Ruby gem for this - bad luck, you should either create MTProto Ruby gem yourself, either move this functional to another service written in language that has MTProto library.

Upvotes: 13

Related Questions