Telegram Bot Support

Bug #1582586 reported by LukaPercic
42
This bug affects 9 people
Affects Status Importance Assigned to Milestone
Telegram app
New
Undecided
Unassigned

Bug Description

Hi, do you plan to support Telegram bots?

You can do- it through Bot API(https://core.telegram.org/bots/api)
(getUpdate or webhooks).

Or, alternatively, you can do it through MTProto;

Pros is that;
• you have almost everything ready for it

Cons is that you need to;
• implement a method for bot authorization. It can be found in mtproto scheme (https://github.com/telegramdesktop/tdesktop/blob/master/Telegram/SourceFiles/mtproto/scheme.tl#L715).

(Or example from Telegram CLI for Linux c++(https://github.com/vysheng/tgl/blob/ffb04caca71de0cddf28cd33a4575922900a59ed/queries.c#L5291))

• implement something that would replace messages.readHistory method (https://core.telegram.org/method/messages.readHistory).
Messages can't be marked as read with the bot, so there needs to be internal history implemented and offset for an unread message.
(Bot API method getUpdates implements offset parameter that can handle that)

I would really encourage you to do that because the most popular c++ bot lib looks like it died (https://github.com/vysheng/tg)) and nobody in the community can deal with their numerous dependencies.

They are also featured under https://telegram.org/apps#unofficial-apps), I think you can replace them with your repository as default linux/cross-platform lib.
We (ZeroPass(https://www.zeropass.io/)) would certainly love to replace their messy lib with yours if the bots would be added.

Best,
-Luka

Revision history for this message
Emanuele Antonio Faraone (emanueleant03) wrote :

It is very important

Revision history for this message
MrTone (alessio-sfienti) wrote :

Yes it is really very important

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.