Telethon
1.9.0
1.8.0
1.7.7
1.7.6
1.7.5
1.7.4
1.5.5
1.5.4
1.5.3
1.5.2
1.5.1
1.5
1.45.0
1.44.0
1.43.2
1.43.1
1.43.0
1.42.0
1.41.2
1.41.1
1.41.0
1.40.0
1.4.3
1.4.2
1.4.1
1.4
1.39.0
1.38.1
1.38.0
1.3
1.28.5
1.28.2
1.28.1
1.28.0
1.27.0
1.26.1
1.26.0
1.25.4
1.25.3
1.25.2
1.25.1
1.25.0
1.24.0
1.23.0
1.22.0
1.21.1
1.21
1.20
1.2
1.19.5
1.19.4
1.19.3
1.19.2
1.19.1
1.19.0
1.18.2
1.18.1
1.18.0
1.17.5
1.17.4
1.17.3
1.17.2
1.17.1
1.17.0
1.16.4
1.16.3
1.16.2
1.16.1
1.16.0
1.15.0
1.14.0
1.13.0
1.12.0
1.11.3
1.11.2
1.11.1
1.11.0
1.10.9
1.10.8
1.10.7
1.10.6
1.10.5
1.10.4
1.10.3
1.10.2
1.10.10
1.10.1
1.10.0
1.0rc1
1.0.4
1.0.3
1.0.2
1.0.1
0.9.1
0.9
0.8
0.7.1
0.7.0.1
0.6
0.5.0.2
0.19.1.6
0.19.1.5
0.19.1.4
0.19.1.3
0.19.1.2
0.19.1.1
0.19.1
0.19.0.1
0.19
0.18.3
0.18.2.3
0.18.2.2
0.18.2.1
0.18.2
0.18.1.1
0.18.1
0.18.0.3
0.18.0.2
0.18.0.1
0.18
0.17.4.5
0.17.4.4
0.17.4.3
0.17.4.2
0.17.4.1
0.17.4
0.17.3
0.17.2.4
0.17.2.3
0.17.2.2
0.17.2.1
0.17.2
0.17.1.2
0.17.1.1
0.17.1
0.17
0.16.2.3
0.16.2.2
0.16.2.1
0.16.2
0.16.1.4
0.16.1.3
0.16.1.2
0.16.1.1
0.16.1
0.16.0.9
0.16.0.8
0.16.0.7
0.16.0.6
0.16.0.5
0.16.0.4
0.16.0.3
0.16.0.2
0.16.0.11
0.16.0.10
0.16.0.1
0.16
0.15.5.7
0.15.5.6
0.15.5.5
0.15.5.4
0.15.5.3
0.15.5.2
0.15.5.1
0.15.5
0.15.4.3
0.15.4.2
0.15.4.1
0.15.4
0.15.3.2
0.15.3.1
0.15.3
0.15.2.5
0.15.2.4
0.15.2.3
0.15.2.2
0.15.2.1
0.15.2
0.15.1.5
0.15.1.4
0.15.1.3
0.15.1.2
0.15.1.1
0.15.1
0.15.0.4
0.15.0.3
0.15.0.2
0.15.0.1
0.15
0.14.2
0.14
0.13.6
0.13.5.1
0.13.5
0.13.4
0.13.3
0.13.2.2
0.13.2.1
0.13.2
0.13.1
0.13
0.12.2
0.12.1
0.12
0.11.5
0.11.4
0.11.1
0.11
0.10.1
0.10
1.9.0
1.8.0
1.7.7
1.7.6
1.7.5
1.7.4
1.7.3
1.7.2
1.7.1
1.7
1.6.2
1.6.1.post1
1.6.1
1.6
1.5.5
1.5.4
1.5.3
1.5.2
1.5.1
1.5
1.45.0
1.44.0
1.43.2
1.43.1
1.43.0
1.42.0
1.41.2
1.41.1
1.41.0
1.40.0
1.4.3
1.4.2
1.4.1
1.4
1.39.0
1.38.1
1.38.0
1.37.0
1.36.0
1.35.0
1.34.0
1.33.1
1.33.0
1.32.1
1.32.0
1.31.1
1.31.0
1.30.3
1.30.2
1.30.1
1.30.0
1.3
1.29.3
1.29.2
1.29.1
1.29.0
1.28.5
1.28.2
1.28.1
1.28.0
1.27.0
1.26.1
1.26.0
1.25.4
1.25.3
1.25.2
1.25.1
1.25.0
1.24.0
1.23.0
1.22.0
1.21.1
1.21
1.20
1.2
1.19.5
1.19.4
1.19.3
1.19.2
1.19.1
1.19.0
1.18.2
1.18.1
1.18.0
1.17.5
1.17.4
1.17.3
1.17.2
1.17.1
1.17.0
1.16.4
1.16.3
1.16.2
1.16.1
1.16.0
1.15.0
1.14.0
1.13.0
1.12.0
1.11.3
1.11.2
1.11.1
1.11.0
1.10.9
1.10.8
1.10.7
1.10.6
1.10.5
1.10.4
1.10.3
1.10.2
1.10.10
1.10.1
1.10.0
1.1.1
1.1
1.0rc1
1.0.post2
1.0.4
1.0.3
1.0.2
1.0.1
0.9.1
0.9
0.8
0.7.1
0.7.0.1
0.6
0.5.0.2
0.19.1.6
0.19.1.5
0.19.1.4
0.19.1.3
0.19.1.2
0.19.1.1
0.19.1
0.19.0.1
0.19
0.18.3
0.18.2.3
0.18.2.2
0.18.2.1
0.18.2
0.18.1.1
0.18.1
0.18.0.3
0.18.0.2
0.18.0.1
0.18
0.17.4.5
0.17.4.4
0.17.4.3
0.17.4.2
0.17.4.1
0.17.4
0.17.3
0.17.2.4
0.17.2.3
0.17.2.2
0.17.2.1
0.17.2
0.17.1.2
0.17.1.1
0.17.1
0.17
0.16.2.3
0.16.2.2
0.16.2.1
0.16.2
0.16.1.4
0.16.1.3
0.16.1.2
0.16.1.1
0.16.1
0.16.0.9
0.16.0.8
0.16.0.7
0.16.0.6
0.16.0.5
0.16.0.4
0.16.0.3
0.16.0.2
0.16.0.11
0.16.0.10
0.16.0.1
0.16
0.15.5.7
0.15.5.6
0.15.5.5
0.15.5.4
0.15.5.3
0.15.5.2
0.15.5.1
0.15.5
0.15.4.3
0.15.4.2
0.15.4.1
0.15.4
0.15.3.2
0.15.3.1
0.15.3
0.15.2.5
0.15.2.4
0.15.2.3
0.15.2.2
0.15.2.1
0.15.2
0.15.1.5
0.15.1.4
0.15.1.3
0.15.1.2
0.15.1.1
0.15.1
0.15.0.4
0.15.0.3
0.15.0.2
0.15.0.1
0.15
0.14.2
0.14
0.13.6
0.13.5.1
0.13.5
0.13.4
0.13.3
0.13.2.2
0.13.2.1
0.13.2
0.13.1
0.13
0.12.2
0.12.1
0.12
0.11.5
0.11.4
0.11.3
0.11.2.1
0.11.1
0.11
0.10.1
0.10
توضیحات
Full-featured Telegram client library for Python 3
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | Telethon-1.9.0 |
| نام | Telethon |
| نسخه کتابخانه | 1.9.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Lonami Exo |
| ایمیل نویسنده | Lonami Exo <totufals@hotmail.com> |
| آدرس صفحه اصلی | https://codeberg.org/Lonami/Telethon |
| آدرس اینترنتی | https://pypi.org/project/Telethon/ |
| مجوز | - |
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.
Contributing
------------
Telethon v1 is for the most part in maintenance mode.
New layers are still updated to when released, bug fixes are welcome,
and some small additions may still be added from time to time.
**Please only submit issues and pull requests authored entirely by you or other fellow humans.**
.. _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
نیازمندی
| مقدار | نام |
|---|---|
| - | pyaes |
| - | rsa |
| xtr | cryptg; |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.5 | Python |
نحوه نصب
نصب پکیج whl Telethon-1.9.0:
pip install Telethon.whl
نصب پکیج tar.gz Telethon-1.9.0:
pip install Telethon.tar.gz