telethon
Pure Python 3 MTProto API Telegram client library, for bots too!
Science Score: 36.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
1 of 162 committers (0.6%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.9%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
Pure Python 3 MTProto API Telegram client library, for bots too!
Basic Info
- Host: GitHub
- Owner: LonamiWebs
- License: mit
- Language: Python
- Default Branch: v1
- Homepage: https://docs.telethon.dev
- Size: 9.29 MB
Statistics
- Stars: 11,226
- Watchers: 157
- Forks: 1,536
- Open Issues: 104
- Releases: 40
Topics
Metadata Files
README.rst
Telethon
========
.. epigraph::
⭐️ Thanks **everyone** who has starred the project, it means a lot!
|logo| **Telethon** is an asyncio_ **Python 3**
MTProto_ library to interact with Telegram_'s API
as a user or through a bot account (bot API alternative).
.. important::
If you have code using Telethon before its 1.0 version, you must
read `Compatibility and Convenience`_ to learn how to migrate.
As with any third-party library for Telegram, be careful not to
break `Telegram's ToS`_ or `Telegram can ban the account`_.
What is this?
-------------
Telegram is a popular messaging application. This library is meant
to make it easy for you to write Python programs that can interact
with Telegram. Think of it as a wrapper that has already done the
heavy job for you, so you can focus on developing an application.
Installing
----------
.. code-block:: sh
pip3 install telethon
Creating a client
-----------------
.. code-block:: python
from telethon import TelegramClient, events, sync
# These example values won't work. You must get your own api_id and
# api_hash from https://my.telegram.org, under API Development.
api_id = 12345
api_hash = '0123456789abcdef0123456789abcdef'
client = TelegramClient('session_name', api_id, api_hash)
client.start()
Doing stuff
-----------
.. code-block:: python
print(client.get_me().stringify())
client.send_message('username', 'Hello! Talking to you from Telethon')
client.send_file('username', '/home/myself/Pictures/holidays.jpg')
client.download_profile_photo('me')
messages = client.get_messages('username')
messages[0].download_media()
@client.on(events.NewMessage(pattern='(?i)hi|hello'))
async def handler(event):
await event.respond('Hey!')
Next steps
----------
Do you like how Telethon looks? Check out `Read The Docs`_ for a more
in-depth explanation, with examples, troubleshooting issues, and more
useful information.
.. _asyncio: https://docs.python.org/3/library/asyncio.html
.. _MTProto: https://core.telegram.org/mtproto
.. _Telegram: https://telegram.org
.. _Compatibility and Convenience: https://docs.telethon.dev/en/stable/misc/compatibility-and-convenience.html
.. _Telegram's ToS: https://core.telegram.org/api/terms
.. _Telegram can ban the account: https://docs.telethon.dev/en/stable/quick-references/faq.html#my-account-was-deleted-limited-when-using-the-library
.. _Read The Docs: https://docs.telethon.dev
.. |logo| image:: logo.svg
:width: 24pt
:height: 24pt
Owner
- Name: LonamiWebs
- Login: LonamiWebs
- Kind: organization
- Email: totufals@hotmail.com
- Location: Spain
- Website: https://lonami.dev
- Repositories: 6
- Profile: https://github.com/LonamiWebs
The place where Lonami does his things. Telegram group over https://t.me/LonamiWebs
GitHub Events
Total
- Create event: 7
- Commit comment event: 1
- Issues event: 174
- Watch event: 1,280
- Issue comment event: 338
- Push event: 68
- Gollum event: 9
- Pull request event: 132
- Pull request review event: 49
- Pull request review comment event: 44
- Fork event: 179
Last Year
- Create event: 7
- Commit comment event: 1
- Issues event: 174
- Watch event: 1,280
- Issue comment event: 338
- Push event: 68
- Gollum event: 9
- Pull request event: 132
- Pull request review event: 49
- Pull request review comment event: 44
- Fork event: 179
Committers
Last synced: almost 3 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Lonami Exo | t****s@h****m | 2,526 |
| Dmitry D. Chernov | b****r@y****u | 38 |
| Tulir Asokan | t****r@m****t | 34 |
| Shrimadhav U K | S****e@u****m | 11 |
| painor | p****a@g****m | 11 |
| Jeff | j****0@g****m | 10 |
| Joscha Götzer | j****r@g****m | 10 |
| Andrey Egorov | a****6@g****m | 8 |
| Tanuj | e****e@u****m | 8 |
| penn5 | p****5@u****m | 8 |
| Devesh Pal | n****0@o****m | 6 |
| Anonymous | 6****0@u****m | 5 |
| NotAFile | n****e@g****m | 5 |
| painor | 3****r@u****m | 5 |
| vegeta1k95 | 3****5@u****m | 5 |
| Сергей Прохоров | s****r@g****m | 4 |
| Kyle2142 | 1****2@u****m | 4 |
| Birger Jarl | c****r@g****m | 4 |
| Serhii Dylda | t****c@g****m | 4 |
| Manuel1510 | 4****0@u****m | 4 |
| Hasan | J****o@u****m | 3 |
| Csaba Henk | c****a@l****u | 3 |
| Nick80835 | n****5@g****m | 3 |
| Viktor Oreshkin | s****t@g****m | 3 |
| Pascal Jürgens | t****e@u****m | 3 |
| s3mple | 4****e@u****m | 3 |
| zed | i****r@g****m | 3 |
| apepenkov | 3****v@u****m | 3 |
| YouTwitFace | c****t@l****m | 3 |
| Goblenus | G****s@u****m | 2 |
| and 132 more... | ||
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 546
- Total pull requests: 292
- Average time to close issues: 2 months
- Average time to close pull requests: 2 days
- Total issue authors: 472
- Total pull request authors: 88
- Average comments per issue: 3.9
- Average comments per pull request: 0.7
- Merged pull requests: 181
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 130
- Pull requests: 165
- Average time to close issues: about 15 hours
- Average time to close pull requests: 1 day
- Issue authors: 114
- Pull request authors: 37
- Average comments per issue: 0.89
- Average comments per pull request: 0.44
- Merged pull requests: 103
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- FreeM1ne (6)
- o2alexanderfedin (6)
- Lonami (6)
- AtlantisDe (5)
- NotStatilko (4)
- addreeh (4)
- MrVolot (3)
- JM001113 (3)
- simbadmorehod (3)
- IamZiroToxic (2)
- msramalho (2)
- jw-star (2)
- Jahongir-Qurbonov (2)
- Who-X1 (2)
- theluxury (2)
Pull Request Authors
- Jahongir-Qurbonov (45)
- Nick80835 (33)
- Darskiy (26)
- apepenkov (8)
- New-dev0 (7)
- chirizxc (6)
- Kacnep89 (6)
- Aayco (6)
- 2ei (6)
- orShadxw (6)
- ufoptg (5)
- SpEcHiDe (4)
- HBcao233 (4)
- delobanov (4)
- aeims (4)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 20
-
Total downloads:
- pypi 1,402,628 last-month
- Total docker downloads: 203,801
-
Total dependent packages: 109
(may contain duplicates) -
Total dependent repositories: 3,839
(may contain duplicates) - Total versions: 589
- Total maintainers: 12
pypi.org: telethon
Full-featured Telegram client library for Python 3
- Homepage: https://github.com/LonamiWebs/Telethon
- Documentation: https://telethon.readthedocs.io/
- License: MIT
-
Latest release: 1.41.2
published 6 months ago
Rankings
Maintainers (1)
proxy.golang.org: github.com/LonamiWebs/Telethon
- Documentation: https://pkg.go.dev/github.com/LonamiWebs/Telethon#section-documentation
- License: mit
-
Latest release: v1.40.0
published 10 months ago
Rankings
proxy.golang.org: github.com/lonamiwebs/telethon
- Documentation: https://pkg.go.dev/github.com/lonamiwebs/telethon#section-documentation
- License: mit
-
Latest release: v1.38.0
published over 1 year ago
Rankings
pypi.org: telethon-aio
Full-featured Telegram client library for Python 3
- Homepage: https://github.com/LonamiWebs/Telethon
- Documentation: https://telethon-aio.readthedocs.io/
- License: MIT
-
Latest release: 0.18.3
published almost 8 years ago
Rankings
Maintainers (1)
pypi.org: newthon
An edited 1.24.0 version of the full-featured Telegram client library for Python 3
- Homepage: https://github.com/disk6969/Telethon
- Documentation: https://newthon.readthedocs.io/
- License: MIT
-
Latest release: 1.28.5
published over 3 years ago
Rankings
Maintainers (1)
pypi.org: c-telethon
Full-featured Telegram client library for Python 3
- Homepage: https://github.com/LonamiWebs/Telethon
- Documentation: https://c-telethon.readthedocs.io/
- License: MIT
-
Latest release: 1.28.5
published over 2 years ago
Rankings
Maintainers (1)
pypi.org: telemdo
Full-featured Telegram client library for Python 3
- Homepage: https://github.com/LonamiWebs/Telethon
- Documentation: https://telemdo.readthedocs.io/
- License: MIT
-
Latest release: 1.24.0
published over 3 years ago
Rankings
pypi.org: teledoge
Full-featured Telegram client library for Python 3
- Homepage: https://github.com/LonamiWebs/Telethon
- Documentation: https://teledoge.readthedocs.io/
- License: MIT
-
Latest release: 1.24.0
published about 4 years ago
Rankings
Maintainers (1)
pypi.org: ayiinxd
Full-featured Telegram client library for Python 3
- Homepage: https://github.com/LonamiWebs/Telethon
- Documentation: https://ayiinxd.readthedocs.io/
- License: MIT
-
Latest release: 0.1.3
published almost 2 years ago
Rankings
Maintainers (1)
pypi.org: telethongoblenustest
Full-featured Telegram client library for Python 3
- Homepage: https://github.com/LonamiWebs/Telethon
- Documentation: https://telethongoblenustest.readthedocs.io/
- License: MIT
-
Latest release: 0.15.5
published about 8 years ago
Rankings
Maintainers (1)
pypi.org: telethon-repl
Full-featured Telegram client library for Python 3
- Homepage: https://github.com/LonamiWebs/Telethon
- Documentation: https://telethon-repl.readthedocs.io/
- License: MIT
-
Latest release: 1.33.1
published about 2 years ago
Rankings
Maintainers (1)
pypi.org: telethon-mod
Full-featured Telegram client library for Python 3
- Homepage: https://github.com/LonamiWebs/Telethon
- Documentation: https://telethon-mod.readthedocs.io/
- License: MIT
-
Latest release: 1.33.1
published about 2 years ago
Rankings
Maintainers (2)
pypi.org: telethon2
Full-featured Telegram client library for Python 3
- Homepage: https://github.com/LonamiWebs/Telethon
- Documentation: https://telethon2.readthedocs.io/
- License: MIT
-
Latest release: 1.30.3
published over 2 years ago
Rankings
pypi.org: tashritelethon
Full-featured Telegram client library for Python 3
- Homepage: https://github.com/LonamiWebs/Telethon
- Documentation: https://tashritelethon.readthedocs.io/
- License: MIT
-
Latest release: 1.24.0
published over 2 years ago
Rankings
Maintainers (1)
pypi.org: newthon-fixed
An edited 1.24.0 version of the full-featured Telegram client library for Python 3
- Homepage: https://github.com/disk6969/Telethon
- Documentation: https://newthon-fixed.readthedocs.io/
- License: MIT
-
Latest release: 1.27.6
published over 3 years ago
Rankings
Maintainers (1)
pypi.org: m-tel
Full-featured Telegram client library for Python 3
- Homepage: https://github.com/LonamiWebs/Telethon
- Documentation: https://m-tel.readthedocs.io/
- License: MIT
-
Latest release: 1.39.1
published about 1 year ago
Rankings
pypi.org: tgtelmodif
Full-featured Telegram client library for Python 3
- Homepage: https://github.com/LonamiWebs/Telethon
- Documentation: https://tgtelmodif.readthedocs.io/
- License: MIT
-
Latest release: 1.39.1
published about 1 year ago
Rankings
pypi.org: modif
Full-featured Telegram client library for Python 3
- Homepage: https://github.com/LonamiWebs/Telethon
- Documentation: https://modif.readthedocs.io/
- License: MIT
-
Latest release: 1.39.1
published about 1 year ago
Rankings
pypi.org: fastertelethontest
Full-featured Telegram client library for Python 3
- Homepage: https://github.com/LonamiWebs/Telethon
- Documentation: https://fastertelethontest.readthedocs.io/
- License: MIT
-
Latest release: 1.39.1
published about 1 year ago
Rankings
Maintainers (1)
pypi.org: telethon-api
Full-featured Telegram client library for Python 3
- Homepage: https://github.com/LonamiWebs/Telethon
- Documentation: https://telethon-api.readthedocs.io/
- License: MIT
-
Latest release: 1.35.0
published almost 2 years ago
Rankings
Maintainers (1)
Dependencies
- pytest *
- pytest-asyncio *
- pytest-cov *
- cryptg *
- hachoir *
- pillow *
- pysocks *
- python-socks *
- telethon *
- markdown-it-py *
- pyaes *
- rsa *
- pyaes *
- rsa *