Gogram TL Reference
Complete documentation for Telegram's Type Language (TL) Schema, optimized for Gogram development.
Layer
224
1560
Constructors
769
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
InputPeerSelf
Defines the current user.
BoolTrue
The constructor can be interpreted as a boolean true value.
True
See predefined identifiers.
Null
Corresponds to an arbitrary empty object.
InputUserSelf
Defines the current user.
InputPeerUserFromMessage
Defines a min user that was seen in a certain message of a certain chat.
Error
Error.
InputPeerUser
Defines a user for further interaction.
InputPeerChat
Defines a chat for further interaction.
Vector
A universal vector constructor.
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
InvokeWithLayer
Invoke the specified query using the specified API layer
InitConnection
Initialize connection
InvokeWithMessagesRange
Invoke with the given message range
InvokeWithoutUpdates
Invoke a request without subscribing the used connection for updates (this is enabled by default for
InvokeWithBusinessConnection
Invoke a method using a Telegram Business Bot connection, see here for more info, including a list
InvokeWithTakeout
Invoke a method within a takeout session, see here for more info.
InvokeWithGooglePlayIntegrity
Official clients only, invoke with Google Play Integrity token.
InvokeWithApnsSecret
Official clients only, invoke with Apple push verification.