Raw
Namespace
Functions
Types
TypeResPQ
TypeServerDhParams
TypeSetClientDhParamsAnswer
TypeDestroyAuthKeyRes
TypeFutureSalt
TypeIpPort
TypeAccessPointRule
TypeRpcDropAnswer
TypeFutureSalts
TypePong
TypeDestroySessionRes
TypeInputPeer
Peer
TypeInputFile
TypeInputDocument
TypeInputPhoto
TypeInputGeoPoint
TypeDocumentAttribute
Various possible attributes of a document (used to define if it’s a sticker, a gif, a video, a mask sticker, an image, an audio, and so on)
TypeInputGame
TypeInputWebDocument
Specifies a document that will have to be downloaded from the url by the telegram servers
TypeInvoice
Invoice
TypeDataJSON
Represent a json-encoded object
TypeInputMedia
Defines media content of a message.
TypePoll
Indicates a poll message
TypeMessageEntity
Message entities, representing styled text in a message
TypeVideoSize
Represents an animated video thumbnail
TypeInputStickerSet
Represents a stickerset
TypeInputGroupCall
Indicates a group call
TypeUserProfilePhoto
TypeUserStatus
User online status
TypeRestrictionReason
Restriction reason
TypeEmojiStatus
TypeUsername
Contains information about a username
TypePeerColor
Represents a color palette.
TypeChatPhoto
TypeInputChannel
TypeChatAdminRights
Represents the rights of an admin in a channel/supergroup.
TypeChatBannedRights
Represents the rights of a normal user in a supergroup/channel/chat.
TypeChatParticipants
TypePhoto
TypePeerNotifySettings
Notification settings.
TypeExportedChatInvite
TypeBotInfo
Info about bots (available bot commands, etc)
TypePeer
Identifier of a private chat, basic group, group or channel (see here for more info).
TypeChatReactions
TypeStickerSet
Represents a stickerset (stickerpack)
TypeChannelLocation
TypePeerStories
Stories associated to a peer
TypeWallPaper
TypeChatParticipant
TypeMessageFwdHeader
Info about a forwarded message
TypeMessageReplyHeader
TypeMessageMedia
Media
TypeReplyMarkup
Reply markup for bot and inline keyboards
TypeMessageReplies
Info about post comments (for channels) or message replies (for groups)
TypeMessageReactions
Message reactions
TypeFactCheck
Represents a fact-check created by an independent fact-checker.
TypeMessageAction
Object describing actions connected to a service message.
TypeGeoPoint
TypeDocument
TypeWebPage
TypeGame
Indicates an already sent game
TypeWebDocument
TypeMessageExtendedMedia
TypePollResults
Results of poll
TypeStoryItem
TypePaymentRequestedInfo
Requested payment info
TypePaymentCharge
Charged payment
TypePhoneCallDiscardReason
Why was the phone call discarded?
TypeBotApp
TypeSecureValue
Secure telegram passport value
TypeSecureCredentialsEncrypted
Encrypted secure credentials
TypeSecureValueType
Secure value type
TypeRequestedPeer
Info about a peer, shared by a user with the currently logged in bot using messages.sendbotrequestedpeer.
TypeDraftMessage
TypeFolder
A folder
TypePhotoSize
Location of a certain size of a picture
TypeUser
TypeNotificationSound
Represents a notification sound
TypeWallPaperSettings
Wallpaper rendering information.
TypePeerSettings
List of actions that are possible when interacting with this user, to be shown as suggested actions in the chat bar
TypePremiumGiftOption
Telegram premium gift option
TypeBusinessWorkHours
Specifies a set of telegram business opening hours.
TypeBusinessLocation
Represents the location of a telegram business.
TypeBusinessGreetingMessage
Describes a telegram business greeting, automatically sent to new users writing to us in private for the first time, or after a certain inactivity period.
TypeBusinessAwayMessage
Describes a telegram business away message, automatically sent to users writing to us when we’re offline, during closing hours, while we’re on vacation, or in some other custom time period when we cannot immediately answer to the user.
TypeBusinessIntro
Telegram business introduction.
TypeBirthday
Birthday information for a user.
TypeContact
A contact of the current user.
TypeImportedContact
Object contains info on a successfully imported contact.
TypePopularContact
Popular contact
TypePeerBlocked
Info about a blocked user
TypeChat
TypeDialog
TypeMessage
TypeForumTopic
TypeChatFull
TypeSendMessageAction
User actions. use this to provide users with detailed info about their chat partner’s actions: typing or sending attachments of all kinds.
TypeEncryptedMessage
TypeEncryptedChat
Object contains info on an encrypted chat.
TypeDcOption
Information for connection to data center.
TypeNotifyPeer
Object defines the set of users and/or groups that generate notifications.
TypePrivacyKey
Privacy keys together with privacy rules indicate what can or can’t someone do and are specified by a privacykey constructor, and its input counterpart inputprivacykey.
TypePrivacyRule
Privacy rules together with privacy keys indicate what can or can’t someone do and are specified by a privacyrule constructor, and its input counterpart inputprivacyrule.
TypeInlineQueryPeerType
Inline query peer type.
TypeInputBotInlineMessageID
Represents a sent inline message from the perspective of a bot
TypeDialogPeer
TypePostAddress
Shipping address
TypePhoneCall
Phone call
TypeLangPackDifference
Language pack changes
TypeFolderPeer
Peer associated to folder
TypePeerLocated
TypeTheme
Cloud theme
TypeDialogFilter
TypeGroupCallParticipant
Info about a group call participant
TypeGroupCall
TypeChannelParticipant
Channel participant
TypeBotCommand
Describes a bot command that can be used in a chat
TypeBotMenuButton
Indicates the action to execute when pressing the in-ui menu button for bots
TypeStoriesStealthMode
Story stealth mode status
TypeReaction
TypeBoost
Info about one or more boosts applied by a specific user.
TypeReactionCount
Number of users that reacted with a certain emoji
TypeQuickReply
A quick reply shortcut.
TypeBotBusinessConnection
Contains info about a bot business connection.
TypeBroadcastRevenueBalances
Channel ad revenue balance information.
TypeStarsRevenueStatus
TypeUpdate
Object contains info on events occurred.
TypeFileHash
Hash of an uploaded file, to be checked for validity after download
TypeEncryptedFile
TypeInputUser
Defines a user for subsequent interaction.
TypeMaskCoords
Mask coordinates (if this is a mask sticker, attached to a photo)
TypePage
Instant view page
TypeWebPageAttribute
TypeAuthorization
Represents a logged-in session
TypePasswordKdfAlgo
Key derivation function to use when generating the password hash for srp two-factor authorization
TypeSecurePasswordKdfAlgo
Kdf algorithm to use for computing telegram passport hash
TypeSecureSecretSettings
Telegram passport settings
TypeStickerPack
Stickerpack
TypeStickerKeyword
Keywords for a certain sticker
TypeRequestPeerType
Filtering criteria to use for the peer selection list shown to the user.
TypeKeyboardButton
Bot or inline keyboard buttons
TypeKeyboardButtonRow
Bot or inline keyboard rows
TypeMessageRange
Indicates a range of chat messages
TypeInputBotInlineMessage
Represents a sent inline message from the perspective of a bot
TypeBotInlineMessage
Inline message
TypeInlineBotSwitchPM
The bot requested the user to message them in private
TypeInlineBotWebView
Specifies an inline mode mini app button, shown on top of the inline query results list.
TypeBotInlineResult
TypeTopPeerCategory
Top peer category
TypeTopPeer
Top peer
TypeTopPeerCategoryPeers
Top peers by top peer category
TypeInputReplyTo
TypeStickerSetCovered
Stickerset preview
TypeHighScore
Game high score
TypeRichText
Rich text
TypePageListItem
TypePageCaption
Page caption
TypePageBlock
Represents an instant view page element
TypePageTableRow
Table row
TypePageListOrderedItem
TypePageRelatedArticle
Related articles
TypeLabeledPrice
Labeled pricetag
TypePaymentFormMethod
Represents a payment method
TypePaymentSavedCredentials
Saved payment credentials
TypeShippingOption
Shipping options
TypeUpdates
Object which is perceived by the client without a call on its part when an event occurs.
TypePhoneCallProtocol
Phone call protocol
TypePhoneConnection
TypeCdnPublicKey
Public key to use only during handshakes to cdn dcs.
TypeLangPackString
TypeChannelAdminLogEventAction
Channel admin log event
TypeChannelAdminLogEvent
An event in a channel admin log
TypeChatInvite
TypeRecentMeUrl
Recent t.me urls
TypeWebAuthorization
Web authorization
TypeSecureData
Secure passport data, for more info see the passport docs
TypeSecureFile
TypeSecurePlainData
TypeInputSecureFile
Secure passport file, for more info see the passport docs
TypeSecureRequiredType
TypeSecureValueError
Secure value error
TypeJSONValue
TypeJSONObjectValue
Json key: value pair
TypePageTableCell
Represents a table in an instant view table
TypeTextWithEntities
Styled text with message entities
TypePollAnswer
Indicates a possible answer to a poll.
TypePollAnswerVoters
How users voted on a certain poll answer
TypeAutoDownloadSettings
Media autodownload settings
TypeEmojiKeyword
TypeMessagesFilter
Object describes message filter.
TypeThemeSettings
Theme settings
TypeBaseTheme
Basic theme settings
TypeInputWallPaper
TypeMessagePeerVote
How a user voted in a poll
TypeBankCardOpenUrl
Credit card info url provided by the bank
TypeStatsDateRangeDays
Channel statistics date range
TypeStatsAbsValueAndPrev
Channel statistics value pair
TypeStatsPercentValue
Channel statistics percentage
TypeStatsGraph
TypePostInteractionCounters
TypeStatsGroupTopPoster
Most active user in a supergroup
TypeStatsGroupTopAdmin
Most active admin in a supergroup
TypeStatsGroupTopInviter
Most active inviter in a supergroup
TypeMessageViews
View, forward counter + info about replies of a specific message
TypeGroupCallParticipantVideo
Info about a video stream
TypeChatInviteImporter
When and which user joined the chat using a chat invite
TypeChatAdminWithInvites
Info about chat invites generated by admins.
TypeGroupCallParticipantVideoSourceGroup
Describes a group of video synchronization source identifiers
TypeSponsoredMessage
A sponsored message
TypeSearchResultsCalendarPeriod
Information about found messages sent on a specific day, used to split the messages in messages.searchresultscalendar constructors by days.
TypeSearchResultsPosition
Information about a message in a specific position
TypeSendAsPeer
Indicates a peer that can be used to send messages
TypeUserFull
Object contains extended user info.
TypeMessagePeerReaction
How a certain peer reacted to the message
TypeAvailableReaction
Animations associated with a message reaction
TypeGroupCallStreamChannel
Info about an rtmp stream in a group call or livestream
TypeAttachMenuBotIconColor
Represents an attachment menu icon color for bot mini apps
TypeAttachMenuPeerType
Indicates a supported peer type for a bot mini app attachment menu
TypeAttachMenuBotIcon
Represents an attachment menu icon for bot mini apps
TypeAttachMenuBot
Represents a bot mini app that can be launched from the attachment menu
TypeInputStorePaymentPurpose
Info about a telegram premium purchase
TypePremiumGiftCodeOption
Giveaway option.
TypePremiumSubscriptionOption
Telegram premium subscription option
TypeEmojiGroup
TypeAutoSaveSettings
Media autosave settings
TypeAutoSaveException
Peer-specific autosave settings
TypeExportedChatlistInvite
An exported chat folder deep link.
TypeStoryFwdHeader
Contains info about the original poster of a reposted story.
TypeMediaArea
Represents a story media area
TypeStoryViews
Aggregated view and reaction information of a story
TypeStoryView
Story view date and reaction information
TypeMediaAreaCoordinates
Coordinates and size of a clicable rectangular area on top of a story.
TypeGeoPointAddress
TypeMyBoost
Contains information about a single boost slot.
TypePrepaidGiveaway
Contains info about a prepaid giveaway.
TypePublicForward
Contains info about the forwards of a story as a message to public chats and reposts by public channels.
TypeStoryReaction
How a certain peer reacted to or interacted with a story
TypeSavedDialog
Represents a saved message dialog.
TypeSavedReactionTag
Info about a saved message reaction tag.
TypeBusinessWeeklyOpen
A time interval, indicating the opening hours of a telegram business.
TypeInputBusinessRecipients
Specifies the chats that can receive telegram business away and greeting messages.
TypeBusinessRecipients
Specifies the chats that can receive telegram business away and greeting messages.
TypeBusinessAwayMessageSchedule
Specifies when should the telegram business away messages be sent.
TypeTimezone
Timezone information.
TypeBusinessBotRecipients
Specifies the private chats that a connected business bot may receive messages and interact with.
TypeConnectedBot
Contains info about a connected business bot.
TypeContactBirthday
Birthday information of a contact.
TypeMissingInvitee
Info about why a specific user could not be invited.
TypeBusinessChatLink
Contains info about a business chat deep link created by the current account.
TypeSponsoredMessageReportOption
A report option for a sponsored message.
TypeBroadcastRevenueTransaction
A channel ad revenue transaction.
TypeReactionNotificationsFrom
TypeAvailableEffect
Describes a message effect.
TypeStarsTransactionPeer
Source of an incoming telegram star transaction, or its recipient for outgoing telegram star transactions.
TypeStarsTransaction
Represents a telegram stars transaction.
TypeFoundStory
TypeBotPreviewMedia
TypeInputClientProxy
Info about an mtproxy used to connect.
TypeCodeSettings
Settings for the code type to send
TypeEmailVerification
Email verification code or token
TypeInputCheckPasswordSRP
Constructors for checking the validity of a 2fa srp password.
TypeInputNotifyPeer
Object defines the set of users and/or groups that generate notifications.
TypeInputPeerNotifySettings
Notifications settings.
TypeReportReason
Report reason
TypeInputPrivacyKey
Privacy keys together with privacy rules indicate what can or can’t someone do and are specified by a privacykey constructor, and its input counterpart inputprivacykey.
TypeInputPrivacyRule
Privacy rules indicate who can or can’t do something and are specified by a privacyrule, and its input counterpart inputprivacyrule.
TypeAccountDaysTTL
Time-to-live of current account
TypeInputSecureValue
Secure value, for more info see the passport docs
TypeSecureValueHash
Secure value hash
TypeEmailVerifyPurpose
Email verification purpose
TypeInputThemeSettings
Theme settings
TypeInputTheme
TypeGlobalPrivacySettings
Global privacy settings
TypeEmojiList
TypeInputBusinessGreetingMessage
Describes a telegram business greeting, automatically sent to new users writing to us in private for the first time, or after a certain inactivity period.
TypeInputBusinessAwayMessage
Describes a telegram business away message, automatically sent to users writing to us when we’re offline, during closing hours, while we’re on vacation, or in some other custom time period when we cannot immediately answer to the user.
TypeInputBusinessBotRecipients
Specifies the private chats that a connected business bot may interact with.
TypeInputBusinessIntro
Telegram business introduction.
TypeInputBusinessChatLink
Contains info about a business chat deep link to be created by the current account.
TypeReactionsNotifySettings
Reaction notification settings, see here for more info.
TypeContactStatus
Contact status: online / offline.
TypeInputContact
Object defines a contact from the user’s phone book.
TypeSavedContact
Saved contact
TypeExportedContactToken
Describes a temporary profile link.
TypeInputMessage
A message
TypeReceivedNotifyMessage
Confirmation of message receipt
TypeInputQuickReplyShortcut
TypeInputChatPhoto
Defines a new group profile photo.
TypeInputEncryptedChat
Object sets an encrypted chat id.
TypeInputEncryptedFile
Object sets encrypted file for attachment
TypeInputBotInlineResult
Inline bot result
TypeInputDialogPeer
TypeInputStickeredMedia
Represents a media with attached stickers
TypeInputSingleMedia
A single media in an album or grouped media sent with messages.sendmultimedia.
TypeChatOnlines
Number of online users in a chat
TypeEmojiKeywordsDifference
New emoji keywords
TypeEmojiLanguage
Emoji language
TypeEmojiURL
Emoji url
TypeUrlAuthResult
TypeDialogFilterSuggested
Suggested dialog filters (folder )
TypeReadParticipantDate
Contains info about when a certain participant has read a message
TypeAttachMenuBots
Represents a list of bot mini apps that can be launched from the attachment menu
TypeAttachMenuBotsBot
Represents a bot mini app that can be launched from the attachment menu
TypeWebViewResult
Contains the webview url with appropriate theme and user info parameters added
TypeWebViewMessageSent
Contains information about an inline message sent by a web app on behalf of a user.
TypeDefaultHistoryTTL
Contains info about the default value of the time-to-live setting, applied to all new chats.
TypeInputBotApp
TypeOutboxReadDate
Exact read date of a private message we sent to another user.
TypeChannelMessagesFilter
Filter for fetching only certain types of channel messages
TypeInputFileLocation
Defines the location of a file for download.
TypeInputWebFileLocation
Location of remote file
TypeConfig
Object contains info on api configuring parameters.
TypeNearestDc
Object contains info on nearest data center.
TypeCdnConfig
Configuration for cdn file downloads.
TypeInputAppEvent
Object contains info about an event that occurred in the application.
TypeChannelParticipantsFilter
Filter for fetching channel participants
TypeExportedMessageLink
Http link and embed info of channel message
TypeChannelAdminLogEventsFilter
Filter for fetching events in the channel admin log
TypeBotCommandScope
Represents a scope where the bot commands, specified using bots.setbotcommands will be valid.
TypeInputInvoice
An invoice
TypeInputPaymentCredentials
Payment credentials
TypeStarsTopupOption
Telegram stars topup option.
TypeInputStarsTransaction
TypeStarsGiftOption
TypeInputStickerSetItem
Sticker
TypeInputPhoneCall
Phone call
TypeLangPackLanguage
Language pack language
TypeInputFolderPeer
Peer in a folder
TypeInputChatlist
Represents a folder
TypeExportedStoryLink
Represents a story deep link
TypeSmsJob
Info about an sms job.
TypeInputCollectible
TypeDecryptedMessageMedia
Object describes media contents of an encrypted message.
TypeDecryptedMessageAction
Object describes the action to which a service message is linked.
TypeDecryptedMessage
Object describes the contents of an encrypted message.
TypeFileLocation
Indicates the location of a photo, will be deprecated soon