Gogram TL Reference
Complete documentation for Telegram's Type Language (TL) Schema, optimized for Gogram development.
About TL Types
The Type Language (TL) is a schema language used by Telegram to define its API. It describes constructors (data types) and methods (API calls) that form the MTProto protocol.
In Gogram, each TL constructor is represented as a Go struct in the telegram package. For example, inputMediaPhoto becomes telegram.InputMediaPhoto.
Types are abstract interfaces that can be implemented by multiple constructors. For instance, InputMedia is implemented by InputMediaPhoto, InputMediaDocument, and others.
Recent Constructors
AccountAuthorizationForm
Telegram Passport authorization form
AccountAuthorizations
Logged-in sessions
AccountAutoDownloadSettings
Media autodownload settings
AccountAutoSaveSettings
Contains media autosave settings
AccountBusinessChatLinks
Contains info about business chat deep links created by the current account.
AccountChatThemes
Available chat themes
AccountChatThemesNotModified
The available chat themes were not modified
AccountConnectedBots
Info about currently connected business bots.
AccountContentSettings
Sensitive content settings
AccountEmailVerified
The email was verified correctly.
Recent Methods
AccountAcceptAuthorization
Sends a Telegram Passport authorization form, effectively sharing data with the service
AccountCancelPasswordEmail
Cancel the code that was sent to verify an email to use as 2 FA recovery method.
AccountChangeAuthorizationSettings
Change settings related to a session.
AccountChangePhone
Change the phone number of the current account
AccountCheckUsername
Validates a username and checks availability.
AccountClearRecentEmojiStatuses
Clears list of recently used emoji statuses
AccountConfirmBotConnection
Confirm a pending bot connection for the current account.
AccountConfirmPasswordEmail
Verify an email to use as 2 FA recovery method.
AccountConfirmPhone
Confirm a phone number to cancel account deletion, for more info click here
AccountCreateBusinessChatLink
Create a business chat deep link.