Skip to content

The full list of methods of the Golang client 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 deauthorizing an account Logout
Account().Qr The method is intended for getting a QR code for authorization QR
Account().SetProfilePicture The method is intended for setting an account avatar SetProfilePicture
Account().StartAuthorization The method is intended for getting an instance authorization code StartAuthorization
Account().SendAuthorizationCode The method is intended for sending an authorization code SendAuthorizationCode
Account().SendAuthorizationPassword The method is intended for sending a two-factor authentication 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().GetMessagesCount The method gets the number of messages in the sending queue GetMessagesCount
Queues().ClearMessagesQueue The method is intended for clearing the queue of messages to be sent ClearMessagesQueue
Queues().GetWebhooksCount The method gets the number of webhooks in the sending queue GetWebhooksCount
Queues().ClearWebhooksQueue The method is intended for clearing the webhook sending queue ClearWebhooksQueue
ReadMark().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
Service().CheckAccount The method checks whether a Telegram account exists on a phone number CheckAccount
Service().GetAvatar The method returns the avatar of a correspondent or a group chat GetAvatar
Service().GetContacts The method is intended for getting the contact list of the current account GetContacts
Service().GetContactInfo The method is intended for getting information about a contact GetContactInfo
Service().GetChats The method is intended for getting the chat list of the current account GetChats
Service().DeleteMessage The method is intended for deleting a sent message DeleteMessage
Service().EditMessage The method is intended for editing a sent message EditMessage
Service().SendTyping The method is intended for displaying the message typing status (or audio/video recording) SendTyping
Service().archiveChat The method is intended for archiving a chat archiveChat
Service().unarchiveChat The method is intended for unarchiving a chat unarchiveChat
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