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

Support for TDLight extended API #20

Open
a3kov opened this issue Mar 12, 2023 · 6 comments
Open

Support for TDLight extended API #20

a3kov opened this issue Mar 12, 2023 · 6 comments

Comments

@a3kov
Copy link

a3kov commented Mar 12, 2023

Something to consider.
There's modified API gateway https://github.com/tdlight-team/tdlight-telegram-bot-api that supports additional methods only available in MTProto originally.
I think it could be a nice addition to this project. Not all people will run this gateway, so the feature to include the unofficial methods would have to be opt-in setting

@rockneurotiko
Copy link
Owner

I had no idea about this project. I think it needs some investigation on how it would be integrated, because it modifies many existing methods.

@a3kov
Copy link
Author

a3kov commented Mar 14, 2023

Yeah. It's not so simple. Also new methods have different quotas

@smaximov
Copy link

Is there a need for a scraper for TDLight API if they already provide an OpenAPI schema?

@a3kov
Copy link
Author

a3kov commented Mar 15, 2023

I noticed that too, but it's up to you (since we already have this flow integrated might be easier to keep using that, I don't know).

@rockneurotiko
Copy link
Owner

I'm not really sure about that too, because if ExGram end up with implementation for TDLight, it would be easy to have it here, but then the purpose and scope of this project would change.

@a3kov
Copy link
Author

a3kov commented Mar 15, 2023

This is a complex topic indeed. If there was a native MTProto 2.0 implementation for Erlang/Elixir I woudln't even bother - original Bot API is too limited.
But then there are issues with MTProto too, such as lack of HA setup. You have to implement your own monitoring and manual failover in case the gateway crashes, or becomes unavailable otherwise. At least with Telegram servers it's their own problem.
I guess if somebody doesn't need to lookup users and download/upload big files, they would be better off using the official Bot API. With all it's limitations, it's still more robust and simple solution.

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

3 participants