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 an usage example or further description of the arguments, be sure to follow the links.

TelegramClient

This is a summary of the methods and properties you will find at TelegramClient.

Auth

start
send_code_request
sign_in
sign_up
log_out
edit_2fa

Base

connect
disconnect
is_connected
disconnected
loop

Messages

send_message
edit_message
delete_messages
forward_messages
iter_messages
get_messages
send_read_acknowledge

Uploads

send_file
upload_file

Downloads

download_media
download_profile_photo
download_file

Dialogs

iter_dialogs
get_dialogs
archive
iter_drafts
get_drafts
conversation

Users

get_me
is_bot
is_user_authorized
get_entity
get_input_entity
get_peer_id

Chats

iter_participants
get_participants
iter_admin_log
get_admin_log
action

Parse Mode

parse_mode

Updates

on
run_until_disconnected
add_event_handler
remove_event_handler
list_event_handlers
catch_up

Bots

inline_query

Buttons

build_reply_markup

Account

takeout
end_takeout