Gogram TL Reference
Complete documentation for Telegram's Type Language (TL) Schema, optimized for Gogram development.
Layer
224
1556
Constructors
762
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
BoolFalse
Constructor may be interpreted as a boolean false value.
InputPeerUserFromMessage
Defines a min user that was seen in a certain message of a certain chat.
InputUserSelf
Defines the current user.
Error
Error.
Null
Corresponds to an arbitrary empty object.
Vector
A universal vector constructor.
InputPeerUser
Defines a user for further interaction.
InputPeerSelf
Defines the current user.
InputUserEmpty
Empty constructor, does not define a user.
True
See predefined identifiers.
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
InvokeWithoutUpdates
Invoke a request without subscribing the used connection for updates (this is enabled by default for
InitConnection
Initialize connection
InvokeWithMessagesRange
Invoke with the given message range
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
InvokeWithApnsSecret
Official clients only, invoke with Apple push verification.
InvokeWithGooglePlayIntegrity
Official clients only, invoke with Google Play Integrity token.