Skip to content

The full list of methods of the Python library#

API method Description Link to the documentation
account.getSettings The method is intended for getting the current account settings GetSettings
account.getAccountSettings The method is intended for getting information about a Telegram account getAccountSettings
account.setSettings The method is intended for setting the account settings SetSettings
account.getStateInstance The method is intended for getting the account state GetStateInstance
account.reboot The method is intended for rebooting an account Reboot
account.logout The method is intended for logging out an account Logout
account.qr The method is intended for getting a QR code QR
account.setProfilePicture The method is intended for setting an account avatar SetProfilePicture
account.startAuthorization The method is intended for authorizing an instance by phone number startAuthorization
account.sendAuthorizationCode The method is intended for sending an authorization code sendAuthorizationCode
account.sendAuthorizationPassword The method is intended for sending an authorization password sendAuthorizationPassword
groups.createGroup The method is intended for creating a group chat CreateGroup
groups.updateGroupName The method changes the name of a group chat UpdateGroupName
groups.getGroupData The method gets the data of a group chat GetGroupData
groups.addGroupParticipant The method adds a participant to a group chat AddGroupParticipant
groups.removeGroupParticipant The method removes a participant from a group chat RemoveGroupParticipant
groups.setGroupAdmin The method appoints a group chat participant as an administrator SetGroupAdmin
groups.removeAdmin The method deprives a participant of group chat administration rights RemoveAdmin
groups.setGroupPicture The method sets a group avatar SetGroupPicture
groups.leaveGroup The method makes the user of the current account leave a group chat LeaveGroup
journals.getChatHistory The method returns the message history of a chat GetChatHistory
journals.getMessage The method returns a chat message GetMessage
journals.lastIncomingMessages The method returns the latest incoming messages of the account LastIncomingMessages
journals.lastOutgoingMessages The method returns the latest sent messages of the account LastOutgoingMessages
queues.showMessagesQueue The method is intended for getting the list of messages that are in the sending queue ShowMessagesQueue
queues.clearMessagesQueue The method is intended for clearing the queue of messages to be sent ClearMessagesQueue
marking.readChat The method is intended for marking messages in a chat as read ReadChat
receiving.receiveNotification The method is intended for receiving one incoming notification from the notification queue ReceiveNotification
receiving.deleteNotification The method is intended for deleting an incoming notification from the notification queue DeleteNotification
receiving.downloadFile The method is intended for downloading received and sent files DownloadFile
sending.sendMessage The method is intended for sending a text message to a personal or group chat SendMessage
sending.sendFileByUpload The method is intended for sending a file that is uploaded through a form (form-data) SendFileByUpload
sending.sendFileByUrl The method is intended for sending a file that is downloaded by a link SendFileByUrl
sending.sendLocation The method is intended for sending a location message SendLocation
sending.sendContact The method is intended for sending a message with a contact SendContact
sending.sendPoll The method is intended for sending a message with a poll to a personal or group chat SendPoll
serviceMethods.checkAccount The method checks whether an Account exists on a phone number CheckAccount
serviceMethods.getAvatar The method returns the avatar of a correspondent or a group chat GetAvatar
serviceMethods.getContacts The method is intended for getting the contact list of the current account GetContacts
serviceMethods.getContactInfo The method is intended for getting information about a contact GetContactInfo
serviceMethods.deleteMessage The method deletes a message from a chat DeleteMessage
serviceMethods.editMessage The method changes a message in a chat EditMessage
serviceMethods.archiveChat The method archives a chat archiveChat
serviceMethods.unarchiveChat The method unarchives a chat unarchiveChat
serviceMethods.sendTyping The method is intended for sending a notification about typing text or recording audio to a chat SendTyping
webhooks.startReceivingNotifications The method is intended for starting to receive new notifications
webhooks.stopReceivingNotifications The method is intended for stopping receiving new notifications
partner.GetInstances The method is intended for getting all account instances created by a partner. GetInstances
partner.CreateInstance The method is intended for creating an instance on behalf of a partner. CreateInstance
partner.DeleteInstanceAccount The method is intended for deleting an instance of a partner account. DeleteInstanceAccount