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. How should I use the documentation? ¶
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.
Quick-Start. Let’s see a longer example to learn some of the methods that the library has to offer. These are known as “friendly methods”, and you should always use these if possible. from telethon import TelegramClient # Remember to use your own values from my.telegram.org! api_id = 12345 api_hash = '0123456789abcdef0123456789abcdef ...
A telethon (a portmanteau of "television" and "marathon") is a televised fundraising event that lasts many hours or even days, the purpose of which is to raise money for a charitable, political or other purportedly worthy cause.
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.
TelegramClient (session: typing.Union[str, Session], api_id: int, api_hash: str, *, connection: typing.Type[Connection] = <class 'telethon.network.connection.tcpfull.ConnectionTcpFull'>, use_ipv6: bool = False, proxy: Union[tuple, dict] = None, local_addr: Union[str, tuple] = None, timeout: int = 10, request_retries: int = 5, connection_retries ...
This section will teach you how to use what Telethon calls the TL reference. The linked page contains a list and a way to search through all types generated from the definition of Telegram’s API (in .tl file format, hence the name). These types include requests and constructors.
Telethon is a Python library, which means you need to download and install Python from https://www.python.org/downloads/ if you haven’t already. Once you have Python installed, upgrade pip and run: python3 -m pip install --upgrade pip python3 -m pip install --upgrade telethon …to install or upgrade the library to the latest version.
Telethon is a Python library for working with the Telegram API. Download the PDF version of its documentation and learn how to use its features, such as utilities, entities, events, and more. The PDF contains the latest information for Telethon 1.28.5.
Telethon is a Python 3 Telegram client library. It uses the normal Telegram API instead of the Bot API, which means it can perform all actions a regular user can perform. Use this tag when asking questions about using the Telethon library. Learn more….