mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Continue documentation and reducing public API
This commit is contained in:
@@ -352,7 +352,8 @@ For the most part, it's a 1-to-1 translation and the result is idiomatic Teletho
|
||||
|
||||
|
||||
Migrating from aiogram
|
||||
``````````````````````
|
||||
^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Using one of the examples from their v3 documentation with logging and comments removed:
|
||||
|
||||
.. code-block:: python
|
||||
|
@@ -55,7 +55,7 @@ To check for a concrete type, you can use :func:`isinstance`:
|
||||
if isinstance(invite, tl.types.ChatInviteAlready):
|
||||
print(invite.chat)
|
||||
|
||||
The ``telethon._tl`` module is not documented here because it would result in tens of megabytes.
|
||||
The ``telethon._tl`` module is not documented here because it would greatly bloat the documentation and make search harder.
|
||||
Instead, there are multiple alternatives:
|
||||
|
||||
* Use Telethon's separate site to search in the `Telethon Raw API <https://tl.telethon.dev/>`_.
|
||||
|
@@ -66,3 +66,5 @@ Glossary
|
||||
Type Language
|
||||
File format used by Telegram to define all the types and requests available in a :term:`layer`.
|
||||
Telegram's site has an `Overview of the TL language <https://core.telegram.org/mtproto/TL>`_.
|
||||
|
||||
.. seealso:: :ref:`Type Language brief <tl-brief>`.
|
||||
|
@@ -15,6 +15,8 @@ Messages
|
||||
Messages are at the heart of a messaging platform.
|
||||
In Telethon, you will be using the :class:`~types.Message` class to interact with them.
|
||||
|
||||
.. _formatting:
|
||||
|
||||
Formatting messages
|
||||
-------------------
|
||||
|
||||
|
Reference in New Issue
Block a user