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

Lightweight comparaison with Telethon in FAQ #415

Open
fgallaire opened this issue Jun 3, 2020 · 1 comment
Open

Lightweight comparaison with Telethon in FAQ #415

fgallaire opened this issue Jun 3, 2020 · 1 comment

Comments

@fgallaire
Copy link
Contributor

@fgallaire fgallaire commented Jun 3, 2020

Checklist

  • I believe the idea is awesome and would benefit the library.
  • I have searched in the issue tracker for similar requests, including closed ones.

Description

As Telethon is the other (and older) Telegram MTProto API client python library, a lightweight comparaison in the Pyrogram FAQ (pros/cons, features or spirit differences) would be very useful for new users.

@JosXa
Copy link
Contributor

@JosXa JosXa commented Sep 29, 2020

I'll start. Pyrogram...

  • is the most high-level of the available MTProto libraries
  • aims to be similar in structure to the Bot API
  • lags behind Telethon in abstraction of raw method calls (i.e. Telethon just has more builtin features right now)
  • unlike Telethon, abstracts peers in a way that does not leak - It allows to use chat IDs, usernames, and complex objects as method parameters interchangeably by design
  • borrows multiple concepts from python-telegram-bot, which many see as the de facto standard for Python bots
  • currently gets slightly more love and attention than Telethon from its maintainers (and rises in popularity)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.