mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-14 13:36:43 +03:00
07a7a8b404
On the 10th of February, Telegram sent the following message to those with an application registered on https://my.telegram.org. -- Telegram API Update. Hello [REDACTED]. Thank you for contributing to the open Telegram ecosystem by developing your app, [REDACTED]. Please note that due to recent updates to Telegram's handling of SMS and the integration of new SMS providers like Firebase, we are changing the way login codes are handled in third-party apps based on the Telegram API. Starting on 18.02.2023, users logging into third-party apps will only be able to receive login codes via Telegram. It will no longer be possible to request an SMS to log into your app - just like when logging into Telegram's own desktop and web clients. Exactly like with the Telegram Desktop and Web apps, if a user doesn't have a Telegram account yet, they will need to create one first using an official mobile Telegram app. We kindly ask you to update your app's login and signup interfaces to reflect these changes before they go live on 18.02.2023 at 13:00 UTC. This change will not significantly affect users since, according to our research, the vast majority of third-party app users also use official Telegram apps. In the coming months, we expect to offer new tools for third-party developers that will help streamline the login process.
203 lines
3.1 KiB
ReStructuredText
203 lines
3.1 KiB
ReStructuredText
.. _client-ref:
|
|
|
|
================
|
|
Client Reference
|
|
================
|
|
|
|
This page contains a summary of all the important methods and properties that
|
|
you may need when using Telethon. They are sorted by relevance and are not in
|
|
alphabetical order.
|
|
|
|
You should use this page to learn about which methods are available, and
|
|
if you need a usage example or further description of the arguments, be
|
|
sure to follow the links.
|
|
|
|
.. contents::
|
|
|
|
TelegramClient
|
|
==============
|
|
|
|
This is a summary of the methods and
|
|
properties you will find at :ref:`telethon-client`.
|
|
|
|
Auth
|
|
----
|
|
|
|
.. currentmodule:: telethon.client.auth.AuthMethods
|
|
|
|
.. autosummary::
|
|
:nosignatures:
|
|
|
|
start
|
|
send_code_request
|
|
sign_in
|
|
qr_login
|
|
log_out
|
|
edit_2fa
|
|
|
|
Base
|
|
----
|
|
|
|
.. py:currentmodule:: telethon.client.telegrambaseclient.TelegramBaseClient
|
|
|
|
.. autosummary::
|
|
:nosignatures:
|
|
|
|
connect
|
|
disconnect
|
|
is_connected
|
|
disconnected
|
|
loop
|
|
set_proxy
|
|
|
|
Messages
|
|
--------
|
|
|
|
.. py:currentmodule:: telethon.client.messages.MessageMethods
|
|
|
|
.. autosummary::
|
|
:nosignatures:
|
|
|
|
send_message
|
|
edit_message
|
|
delete_messages
|
|
forward_messages
|
|
iter_messages
|
|
get_messages
|
|
pin_message
|
|
unpin_message
|
|
send_read_acknowledge
|
|
|
|
Uploads
|
|
-------
|
|
|
|
.. py:currentmodule:: telethon.client.uploads.UploadMethods
|
|
|
|
.. autosummary::
|
|
:nosignatures:
|
|
|
|
send_file
|
|
upload_file
|
|
|
|
Downloads
|
|
---------
|
|
|
|
.. currentmodule:: telethon.client.downloads.DownloadMethods
|
|
|
|
.. autosummary::
|
|
:nosignatures:
|
|
|
|
download_media
|
|
download_profile_photo
|
|
download_file
|
|
iter_download
|
|
|
|
Dialogs
|
|
-------
|
|
|
|
.. py:currentmodule:: telethon.client.dialogs.DialogMethods
|
|
|
|
.. autosummary::
|
|
:nosignatures:
|
|
|
|
iter_dialogs
|
|
get_dialogs
|
|
edit_folder
|
|
iter_drafts
|
|
get_drafts
|
|
delete_dialog
|
|
conversation
|
|
|
|
Users
|
|
-----
|
|
|
|
.. py:currentmodule:: telethon.client.users.UserMethods
|
|
|
|
.. autosummary::
|
|
:nosignatures:
|
|
|
|
get_me
|
|
is_bot
|
|
is_user_authorized
|
|
get_entity
|
|
get_input_entity
|
|
get_peer_id
|
|
|
|
Chats
|
|
-----
|
|
|
|
.. currentmodule:: telethon.client.chats.ChatMethods
|
|
|
|
.. autosummary::
|
|
:nosignatures:
|
|
|
|
iter_participants
|
|
get_participants
|
|
kick_participant
|
|
iter_admin_log
|
|
get_admin_log
|
|
iter_profile_photos
|
|
get_profile_photos
|
|
edit_admin
|
|
edit_permissions
|
|
get_permissions
|
|
get_stats
|
|
action
|
|
|
|
Parse Mode
|
|
----------
|
|
|
|
.. py:currentmodule:: telethon.client.messageparse.MessageParseMethods
|
|
|
|
.. autosummary::
|
|
:nosignatures:
|
|
|
|
parse_mode
|
|
|
|
Updates
|
|
-------
|
|
|
|
.. py:currentmodule:: telethon.client.updates.UpdateMethods
|
|
|
|
.. autosummary::
|
|
:nosignatures:
|
|
|
|
on
|
|
run_until_disconnected
|
|
add_event_handler
|
|
remove_event_handler
|
|
list_event_handlers
|
|
catch_up
|
|
set_receive_updates
|
|
|
|
Bots
|
|
----
|
|
|
|
.. currentmodule:: telethon.client.bots.BotMethods
|
|
|
|
.. autosummary::
|
|
:nosignatures:
|
|
|
|
inline_query
|
|
|
|
Buttons
|
|
-------
|
|
|
|
.. currentmodule:: telethon.client.buttons.ButtonMethods
|
|
|
|
.. autosummary::
|
|
:nosignatures:
|
|
|
|
build_reply_markup
|
|
|
|
Account
|
|
-------
|
|
|
|
.. currentmodule:: telethon.client.account.AccountMethods
|
|
|
|
.. autosummary::
|
|
:nosignatures:
|
|
|
|
takeout
|
|
end_takeout
|