Gogram TL Reference
Complete documentation for Telegram's Type Language (TL) Schema, optimized for Gogram development.
Layer
220
1526
Constructors
749
Methods
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
Null
Corresponds to an arbitrary empty object.
BoolFalse
Constructor may be interpreted as a boolean false value.
InputPeerUser
Defines a user for further interaction.
InputPeerEmpty
An empty constructor, no user or chat is defined.
InputPeerUserFromMessage
Defines a min user that was seen in a certain message of a certain chat.
True
See predefined identifiers.
InputUserSelf
Defines the current user.
InputUserEmpty
Empty constructor, does not define a user.
InputPeerChannelFromMessage
Defines a min channel that was seen in a certain message of a certain chat.
InputPeerChannel
Defines a channel for further interaction.
Recent Methods
InvokeAfterMsg
Invokes a query after successful completion of one of the previous queries.
InvokeAfterMsgs
Invokes a query after a successful completion of previous queries
InitConnection
Initialize connection
InvokeWithoutUpdates
Invoke a request without subscribing the used connection for updates (this is enabled by default for
InvokeWithLayer
Invoke the specified query using the specified API layer
InvokeWithMessagesRange
Invoke with the given message range
InvokeWithGooglePlayIntegrity
Official clients only, invoke with Google Play Integrity token.
InvokeWithTakeout
Invoke a method within a takeout session, see here for more info.
InvokeWithBusinessConnection
Invoke a method using a Telegram Business Bot connection, see here for more info, including a list
InvokeWithReCaptcha
Official clients only: re-execute a method call that required re CAPTCHA verification via a RECAPTCHA