Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Telegram Bot Support #36

Open
lukapercic opened this issue May 16, 2016 · 1 comment
Open

Telegram Bot Support #36

lukapercic opened this issue May 16, 2016 · 1 comment

Comments

@lukapercic
Copy link

lukapercic commented May 16, 2016

Hi, do you plan to support Telegram bots?

You can do- it through Bot 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.

(Or example from Telegram CLI for Linux c++ CLI for Linux c++)

• implement something that would replace messages.readHistory method.
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) and nobody in community can deal with their numerous dependencies.

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

Best,
-Luka

@smlu
Copy link
Contributor

smlu commented Mar 10, 2017

Sign in as bot user is now supported, this issue can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants