Types for Telegram API, Login Widget, WebApp
Also exported from @grammyjs/types
This object describes the types of gifts that can be gifted to a user or a chat.
Contains information about the affiliate that received a commission via this transaction.
The background is a freeform gradient that rotates after every message in the chat.
The background is automatically filled based on the selected colors.
The background is a .PNG or .TGV (gzipped subset of SVG with MIME type “application/x-tgwallpattern”) pattern to be combined with the background fill chosen by the user.
The background is a wallpaper in the JPEG format.
Represents the scope of bot commands, covering all group and supergroup chat administrators.
Represents the scope of bot commands, covering all group and supergroup chats.
Represents the scope of bot commands, covering all private chats.
Represents the scope of bot commands, covering all administrators of a specific group or supergroup chat.
Represents the scope of bot commands, covering a specific member of a group or supergroup chat.
Represents the default scope of bot commands. Default commands are used if no commands with a narrower scope are specified for the user.
Represents the rights of a business bot.
Describes the connection of the bot with a business account.
Contains information about the start page settings of a Telegram Business account.
Contains information about the location of a Telegram Business account.
This object is received when messages are deleted from a connected business account.
Describes an interval of time during which a business is open.
A placeholder, currently holds no information. Use BotFather to set up your game.
This object represents an incoming callback query from a callback button in an inline keyboard. If the button that originated the query was attached to a message sent by the bot, the field message will be present. If the button was attached to a message sent via the bot (in inline mode), the field inline_message_id will be present. Exactly one of the fields data or game_short_name will be present.
Internal type for channel chats
Internal type for group chats
Internal type for private chats
Internal type for supergroup chats
Represents the rights of an administrator in a chat.
This object contains information about a chat boost.
The boost was obtained by the creation of Telegram Premium gift codes to boost a chat. Each such code boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription.
The boost was obtained by the creation of a Telegram Premium or a Telegram Star giveaway. This boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription for Telegram Premium giveaways and prize_star_count / 500 times for one year for Telegram Star giveaways.
Internal type for channel chats
- accent_color_id
- accepted_gift_types
- active_usernames
- available_reactions
- background_custom_emoji_id
- bio
- birthdate
- business_intro
- business_location
- business_opening_hours
- can_send_paid_media
- can_set_sticker_set
- custom_emoji_sticker_set_name
- description
- emoji_status_custom_emoji_id
- emoji_status_expiration_date
- first_name
- has_aggressive_anti_spam_enabled
- has_hidden_members
- has_private_forwards
- has_protected_content
- has_restricted_voice_and_video_messages
- has_visible_history
- id
- invite_link
- is_direct_messages
- is_forum
- join_by_request
- join_to_send_messages
- last_name
- linked_chat_id
- location
- max_reaction_count
- message_auto_delete_time
- parent_chat
- permissions
- personal_chat
- photo
- pinned_message
- profile_accent_color_id
- profile_background_custom_emoji_id
- rating
- slow_mode_delay
- sticker_set_name
- title
- type
- unique_gift_colors
- unrestrict_boost_count
- username
Internal type for group chats
- accent_color_id
- accepted_gift_types
- active_usernames
- available_reactions
- background_custom_emoji_id
- bio
- birthdate
- business_intro
- business_location
- business_opening_hours
- can_send_paid_media
- can_set_sticker_set
- custom_emoji_sticker_set_name
- description
- emoji_status_custom_emoji_id
- emoji_status_expiration_date
- first_name
- has_aggressive_anti_spam_enabled
- has_hidden_members
- has_private_forwards
- has_protected_content
- has_restricted_voice_and_video_messages
- has_visible_history
- id
- invite_link
- is_direct_messages
- is_forum
- join_by_request
- join_to_send_messages
- last_name
- linked_chat_id
- location
- max_reaction_count
- message_auto_delete_time
- parent_chat
- permissions
- personal_chat
- photo
- pinned_message
- profile_accent_color_id
- profile_background_custom_emoji_id
- rating
- slow_mode_delay
- sticker_set_name
- title
- type
- unique_gift_colors
- unrestrict_boost_count
- username
Internal type for private chats
- accent_color_id
- accepted_gift_types
- active_usernames
- available_reactions
- background_custom_emoji_id
- bio
- birthdate
- business_intro
- business_location
- business_opening_hours
- can_send_paid_media
- can_set_sticker_set
- custom_emoji_sticker_set_name
- description
- emoji_status_custom_emoji_id
- emoji_status_expiration_date
- first_name
- has_aggressive_anti_spam_enabled
- has_hidden_members
- has_private_forwards
- has_protected_content
- has_restricted_voice_and_video_messages
- has_visible_history
- id
- invite_link
- is_direct_messages
- is_forum
- join_by_request
- join_to_send_messages
- last_name
- linked_chat_id
- location
- max_reaction_count
- message_auto_delete_time
- parent_chat
- permissions
- personal_chat
- photo
- pinned_message
- profile_accent_color_id
- profile_background_custom_emoji_id
- rating
- slow_mode_delay
- sticker_set_name
- title
- type
- unique_gift_colors
- unrestrict_boost_count
- username
Internal type for supergroup chats
- accent_color_id
- accepted_gift_types
- active_usernames
- available_reactions
- background_custom_emoji_id
- bio
- birthdate
- business_intro
- business_location
- business_opening_hours
- can_send_paid_media
- can_set_sticker_set
- custom_emoji_sticker_set_name
- description
- emoji_status_custom_emoji_id
- emoji_status_expiration_date
- first_name
- has_aggressive_anti_spam_enabled
- has_hidden_members
- has_private_forwards
- has_protected_content
- has_restricted_voice_and_video_messages
- has_visible_history
- id
- invite_link
- is_direct_messages
- is_forum
- join_by_request
- join_to_send_messages
- last_name
- linked_chat_id
- location
- max_reaction_count
- message_auto_delete_time
- parent_chat
- permissions
- personal_chat
- photo
- pinned_message
- profile_accent_color_id
- profile_background_custom_emoji_id
- rating
- slow_mode_delay
- sticker_set_name
- title
- type
- unique_gift_colors
- unrestrict_boost_count
- username
Represents a chat member that has some additional privileges.
- can_be_edited
- can_change_info
- can_delete_messages
- can_delete_stories
- can_edit_messages
- can_edit_stories
- can_invite_users
- can_manage_chat
- can_manage_direct_messages
- can_manage_topics
- can_manage_video_chats
- can_pin_messages
- can_post_messages
- can_post_stories
- can_promote_members
- can_restrict_members
- custom_title
- is_anonymous
- status
- user
Represents a chat member that was banned in the chat and can't return to the chat or view chat messages.
Represents a chat member that isn't currently a member of the chat, but may join it themselves.
Represents a chat member that has no additional privileges or restrictions.
Represents a chat member that owns the chat and has all administrator privileges.
Represents a chat member that is under certain restrictions in the chat. Supergroups only.
This object represents changes in the status of a chat member.
Describes actions that a non-administrator user is allowed to take in a chat.
This object represents a chat photo.
Describes a checklist.
Describes a task in a checklist.
Describes a service message about tasks added to a checklist.
Describes a service message about checklist tasks marked as done or not done.
Represents a result of an inline query that was chosen by the user and sent to their chat partner.
Describes a service message about a change in the price of direct messages sent to a channel chat.
Describes data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes.
Describes documents or other Telegram Passport elements shared with the bot by the user.
This object contains information about a message that is being replied to, which may come from another chat or forum topic.
This object represents a file ready to be downloaded. The file can be downloaded via the link https://api.telegram.org/file/bot<token>/<file_path>. It is guaranteed that the link will be valid for at least 1 hour. When the link expires, a new one can be requested by calling getFile.
Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot's message and tapped 'Reply'). This can be extremely useful if you want to create user-friendly step-by-step interfaces without having to sacrifice privacy mode. Not supported in channels and for messages sent on behalf of a Telegram Business account.
This object represents a forum topic.
This object represents a service message about a forum topic closed in the chat. Currently holds no information.
This object represents a service message about a new forum topic created in the chat.
This object represents a service message about an edited forum topic.
This object represents a service message about a forum topic reopened in the chat. Currently holds no information.
This object represents a game. Use BotFather to create and edit games, their short names will act as unique identifiers.
This object represents a gift that can be sent by the bot.
Describes a service message about a regular gift that was sent or received.
This object represents a message about a scheduled giveaway.
This object represents a service message about the completion of a giveaway without public winners.
This object represents a service message about the creation of a scheduled giveaway.
This object represents a message about the completion of a giveaway with public winners.
This object describes a message that was deleted or is otherwise inaccessible to the bot.
This object represents one button of an inline keyboard. Exactly one of the optional fields must be used to specify type of the button.
Represents a link to an article or web page.
Represents a link to an MP3 audio file. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio.
Represents a link to an MP3 audio file stored on the Telegram servers. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio.
Represents a link to a file stored on the Telegram servers. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file.
Represents a link to an animated GIF file stored on the Telegram servers. By default, this animated GIF file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with specified content instead of the animation.
Represents a link to a video animation (H.264/MPEG-4 AVC video without sound) stored on the Telegram servers. By default, this animated MPEG-4 file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.
Represents a link to a photo stored on the Telegram servers. By default, this photo will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo.
Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the sticker.
Represents a link to a video file stored on the Telegram servers. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video.
Represents a link to a voice message stored on the Telegram servers. By default, this voice message will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the voice message.
Represents a contact with a phone number. By default, this contact will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the contact.
Represents a link to a file. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file. Currently, only .PDF and .ZIP files can be sent using this method.
Represents a link to an animated GIF file. By default, this animated GIF file will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.
Represents a location on a map. By default, the location will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the location.
Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). By default, this animated MPEG-4 file will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.
Represents a link to a photo. By default, this photo will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo.
Represents a venue. By default, the venue will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the venue.
Represents a link to a page containing an embedded video player or a video file. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video.
Represents a link to a voice recording in an .OGG container encoded with OPUS. By default, this voice recording will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the the voice message.
Describes a checklist to create.
Represents the content of a contact message to be sent as the result of an inline query.
Represents the content of an invoice message to be sent as the result of an inline query.
Represents the content of a location message to be sent as the result of an inline query.
Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.
Represents an audio file to be treated as music to be sent.
Represents a general file to be sent.
Represents a photo to be sent.
The paid media to send is a video.
This object contains information about one answer option in a poll to send.
An animated profile photo in the MPEG4 format.
This object describes a sticker to be added to a sticker set.
Describes a video to post as a story.
Represents the content of a text message to be sent as the result of an inline query.
Represents the content of a venue message to be sent as the result of an inline query.
This object contains basic information about an invoice.
Describes the options used for link preview generation.
This object represents a point on the map.
This object represents a parameter of the inline keyboard button used to automatically authorize a user. Serves as a great replacement for the Telegram Login Widget when the user is coming from Telegram. All the user needs to do is tap/click a button and confirm that they want to log in. Telegram apps support these buttons as of version 5.7.
This object describes the position on faces where a mask should be placed by default.
- author_signature
- edit_date
- effect_id
- external_reply
- forward_origin
- has_protected_content
- is_automatic_forward
- is_from_offline
- is_paid_post
- link_preview_options
- paid_star_count
- quote
- reply_markup
- reply_to_checklist_task_id
- reply_to_message
- reply_to_story
- sender_boost_count
- sender_business_bot
- show_caption_above_media
- via_bot
This object represents a service message about a change in auto-delete timer settings.
The message was originally sent to a channel chat.
The message was originally sent on behalf of a chat to a group chat.
This object represents reaction changes on a message with anonymous reactions.
This object represents a change of a reaction on a message performed by a user.
Describes a regular gift owned by a user or a chat.
Contains the list of gifts received and owned by a user or a chat.
Describes a unique gift received and owned by a user or a chat.
This object contains information about a paid media purchase.
Describes a service message about a change in the price of paid messages within a chat.
Represents an issue in one of the data fields that was provided by the user. The error is considered resolved when the field's value changes.
Represents an issue with a document scan. The error is considered resolved when the file with the document scan changes.
Represents an issue with a list of scans. The error is considered resolved when the list of files containing the scans changes.
Represents an issue with the front side of a document. The error is considered resolved when the file with the front side of the document changes.
Represents an issue with the reverse side of a document. The error is considered resolved when the file with reverse side of the document changes.
Represents an issue with the selfie with a document. The error is considered resolved when the file with the selfie changes.
Represents an issue with one of the files that constitute the translation of a document. The error is considered resolved when the file changes.
Represents an issue with the translated version of a document. The error is considered resolved when a file with the document translation change.
Represents an issue in an unspecified place. The error is considered resolved when new data is added.
This object represents a file uploaded to Telegram Passport. Currently all Telegram Passport files are in JPEG format when decrypted and don't exceed 10MB.
This object contains information about a poll.
This object represents an answer of a user in a non-anonymous poll.
This object contains information about one answer option in a poll.
This object contains information about an incoming pre-checkout query.
Describes an inline message to be sent by a user of a Mini App.
This object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user.
Represents a reaction added to a message along with the number of times it was added.
This object contains basic information about a refunded payment.
This object represents a custom keyboard with reply options (see Introduction to bots for details and examples). Not supported in channels and for messages sent on behalf of a Telegram Business account.
Upon receiving a message with this object, Telegram clients will remove the current custom keyboard and display the default letter-keyboard. By default, custom keyboards are displayed until a new keyboard is sent by a bot. An exception is made for one-time keyboards that are hidden immediately after the user presses a button (see ReplyKeyboardMarkup). Not supported in channels and for messages sent on behalf of a Telegram Business account.
Describes reply parameters for the message that is being sent.
Describes an inline message sent by a Web App on behalf of a user.
This object represents a shipping address.
This object contains information about an incoming shipping query.
Describes a Telegram Star transaction. Note that if the buyer initiates a chargeback with the payment provider from whom they acquired Stars (e.g., Apple, Google) following this transaction, the refunded Stars will be deducted from the bot's balance. This is outside of Telegram's control.
This object represents a sticker.
Describes the position of a clickable area within a story.
Describes a story area pointing to an HTTP or tg:// link. Currently, a story can have up to 3 link areas.
Describes a story area pointing to a location. Currently, a story can have up to 10 location areas.
Describes a story area pointing to a suggested reaction. Currently, a story can have up to 5 suggested reaction areas.
Describes a story area pointing to a unique gift. Currently, a story can have at most 1 unique gift area.
Describes a story area containing weather information. Currently, a story can have up to 3 weather areas.
This object contains basic information about a successful payment. Note that if the buyer initiates a chargeback with the relevant payment provider following this transaction, the funds may be debited from your balance. This is outside of Telegram's control.
Describes a service message about the failed approval of a suggested post. Currently, only caused by insufficient user funds at the time of approval.
Describes a service message about the approval of a suggested post.
Describes a service message about the rejection of a suggested post.
Describes a service message about a successful payment for a suggested post.
Contains parameters of a post that is being suggested by the bot.
Describes a service message about a payment refund for a suggested post.
This object represents an inline button that switches the current user to inline mode in a chosen chat, with an optional default inline query.
Describes the affiliate program that issued the affiliate commission received via this transaction.
Describes a transaction with payment for paid broadcasting.
Describes a transaction with a user.
This object describes a unique gift that was upgraded from a regular gift.
This object describes the colors of the backdrop of a unique gift.
This object contains information about the color scheme for a user's name, message replies and link previews based on a unique gift.
Describes a service message about a unique gift that was sent or received.
This object describes the symbol shown on the pattern of a unique gift.
Internal type holding properties that message updates outside of channels share.
This object represents a Telegram user or bot.
This object represents a Telegram user or bot that was returned by getMe.
This object describes the rating of a user based on their Telegram Star spendings.
This object represents a venue.
This object represents a service message about a video chat ended in the chat.
This object represents a service message about new members invited to a video chat.
This object represents a service message about a video chat scheduled in the chat.
This object represents a service message about a video chat started in the chat. Currently holds no information.
Describes the current status of a webhook.
This object represents a service message about a user allowing a bot to write messages after adding it to the attachment menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess.
This object represents a message.
- animation
- audio
- boost_added
- channel_chat_created
- chat_background_set
- chat_shared
- checklist
- checklist_tasks_added
- checklist_tasks_done
- connected_website
- contact
- delete_chat_photo
- dice
- direct_message_price_changed
- document
- entities
- forum_topic_closed
- forum_topic_created
- forum_topic_edited
- forum_topic_reopened
- game
- general_forum_topic_hidden
- general_forum_topic_unhidden
- gift
- gift_upgrade_sent
- giveaway
- giveaway_completed
- giveaway_created
- giveaway_winners
- group_chat_created
- invoice
- left_chat_member
- location
- message_auto_delete_timer_changed
- migrate_from_chat_id
- migrate_to_chat_id
- new_chat_members
- new_chat_photo
- new_chat_title
- paid_media
- paid_message_price_changed
- passport_data
- photo
- pinned_message
- poll
- proximity_alert_triggered
- refunded_payment
- sticker
- story
- successful_payment
- suggested_post_approval_failed
- suggested_post_approved
- suggested_post_declined
- suggested_post_info
- suggested_post_paid
- suggested_post_refunded
- supergroup_chat_created
- text
- unique_gift
- users_shared
- venue
- video
- video_chat_ended
- video_chat_participants_invited
- video_chat_scheduled
- video_chat_started
- video_note
- voice
- web_app_data
- write_access_allowed
This object represents an incoming update. At most one of the optional parameters can be present in any given update.
- business_connection
- business_message
- callback_query
- channel_post
- chat_boost
- chat_join_request
- chat_member
- chosen_inline_result
- deleted_business_messages
- edited_business_message
- edited_channel_post
- edited_message
- inline_query
- message
- message_reaction
- message_reaction_count
- my_chat_member
- poll
- poll_answer
- pre_checkout_query
- purchased_paid_media
- removed_chat_boost
- shipping_query
- update_id
Wrapper type to bundle all methods of the Telegram Bot API
- addStickerToSet
- answerCallbackQuery
- answerInlineQuery
- answerPreCheckoutQuery
- answerShippingQuery
- answerWebAppQuery
- approveChatJoinRequest
- approveSuggestedPost
- banChatMember
- banChatSenderChat
- close
- closeForumTopic
- closeGeneralForumTopic
- convertGiftToStars
- copyMessage
- copyMessages
- createChatInviteLink
- createChatSubscriptionInviteLink
- createForumTopic
- createInvoiceLink
- createNewStickerSet
- declineChatJoinRequest
- declineSuggestedPost
- deleteBusinessMessages
- deleteChatPhoto
- deleteChatStickerSet
- deleteForumTopic
- deleteMessage
- deleteMessages
- deleteMyCommands
- deleteStickerFromSet
- deleteStickerSet
- deleteStory
- deleteWebhook
- editChatInviteLink
- editChatSubscriptionInviteLink
- editForumTopic
- editGeneralForumTopic
- editMessageCaption
- editMessageChecklist
- editMessageLiveLocation
- editMessageMedia
- editMessageReplyMarkup
- editMessageText
- editStory
- editUserStarSubscription
- exportChatInviteLink
- forwardMessage
- forwardMessages
- getAvailableGifts
- getBusinessAccountGifts
- getBusinessAccountStarBalance
- getBusinessConnection
- getChat
- getChatAdministrators
- getChatGifts
- getChatMember
- getChatMemberCount
- getChatMembersCount
- getChatMenuButton
- getCustomEmojiStickers
- getFile
- getForumTopicIconStickers
- getGameHighScores
- getMe
- getMyCommands
- getMyDefaultAdministratorRights
- getMyDescription
- getMyName
- getMyShortDescription
- getMyStarBalance
- getStarTransactions
- getStickerSet
- getUpdates
- getUserChatBoosts
- getUserGifts
- getUserProfilePhotos
- getWebhookInfo
- giftPremiumSubscription
- hideGeneralForumTopic
- kickChatMember
- leaveChat
- logOut
- pinChatMessage
- postStory
- promoteChatMember
- readBusinessMessage
- refundStarPayment
- removeBusinessAccountProfilePhoto
- removeChatVerification
- removeUserVerification
- reopenForumTopic
- reopenGeneralForumTopic
- replaceStickerInSet
- repostStory
- restrictChatMember
- revokeChatInviteLink
- savePreparedInlineMessage
- sendAnimation
- sendAudio
- sendChatAction
- sendChecklist
- sendContact
- sendDice
- sendDocument
- sendGame
- sendGift
- sendInvoice
- sendLocation
- sendMediaGroup
- sendMessage
- sendMessageDraft
- sendPaidMedia
- sendPhoto
- sendPoll
- sendSticker
- sendVenue
- sendVideo
- sendVideoNote
- sendVoice
- setBusinessAccountBio
- setBusinessAccountGiftSettings
- setBusinessAccountName
- setBusinessAccountProfilePhoto
- setBusinessAccountUsername
- setChatAdministratorCustomTitle
- setChatDescription
- setChatMenuButton
- setChatPermissions
- setChatPhoto
- setChatStickerSet
- setChatTitle
- setCustomEmojiStickerSetThumbnail
- setGameScore
- setMessageReaction
- setMyCommands
- setMyDefaultAdministratorRights
- setMyDescription
- setMyName
- setMyShortDescription
- setPassportDataErrors
- setStickerEmojiList
- setStickerKeywords
- setStickerMaskPosition
- setStickerPositionInSet
- setStickerSetThumbnail
- setStickerSetTitle
- setUserEmojiStatus
- setWebhook
- stopMessageLiveLocation
- stopPoll
- transferBusinessAccountStars
- transferGift
- unbanChatMember
- unbanChatSenderChat
- unhideGeneralForumTopic
- unpinAllChatMessages
- unpinAllForumTopicMessages
- unpinAllGeneralForumTopicMessages
- unpinChatMessage
- upgradeGift
- uploadStickerFile
- verifyChat
- verifyUser
The response contains an object, which always has a Boolean field 'ok' and may have an optional String field 'description' with a human-readable description of the result. If 'ok' equals true, the request was successful and the result of the query can be found in the 'result' field. In case of an unsuccessful request, 'ok' equals false and the error is explained in the 'description'. An Integer 'error_code' field is also returned, but its contents are subject to change in the future. Some errors may also have an optional field 'parameters' of the type ResponseParameters, which can help to automatically handle the error.
This object describes the way a background is filled based on the selected colors. Currently, it can be one of
This object describes the type of a background. Currently, it can be one of
This object represents the scope to which bot commands are applied. Currently, the following 7 scopes are supported:
This object describes the source of a chat boost. It can be one of
This object contains information about one member of a chat. Currently, the following 6 types of chat members are supported:
This object represents one result of an inline query. Telegram clients currently support results of the following 20 types:
This object represents the content of a media message to be sent. It should be one of
This object represents the content of a message to be sent as a result of an inline query. Telegram clients currently support the following 5 types:
This object describes the paid media to be sent. Currently, it can be one of
This object describes a profile photo to set. Currently, it can be one of
This object describes the content of a story to post. Currently, it can be one of
A two-letter ISO 639-1 language code.
This object describes a message that can be inaccessible to the bot. It can be one of
This object describes the origin of a message. It can be one of
Utility type providing the argument type for the given method name or {} if the method does not take any parameters
This object describes a gift received and owned by a user or a chat. Currently, it can be one of
This object describes paid media. Currently, it can be one of
The Bot API supports basic formatting for messages. You can use bold, italic, underlined, strikethrough, spoiler text, block quotations as well as inline links and pre-formatted code in your bots' messages. Telegram clients will render them accordingly. You can specify text entities directly, or use markdown-style or HTML-style formatting.
This object represents an error in the Telegram Passport element which was submitted that should be resolved by the user. It should be one of:
This object describes the type of a reaction. Currently, it can be one of
This object describes the state of a revenue withdrawal operation. Currently, it can be one of
Describes the type of a clickable area on a story. Currently, it can be one of
This object describes the source of a transaction, or its recipient for outgoing transactions. Currently, it can be one of
- Abkhazian
- Afar
- Afrikaans
- Akan
- Albanian
- Amharic
- Arabic
- Aragonese
- Armenian
- Assamese
- Avaric
- Avestan
- Aymara
- Azerbaijani
- Bambara
- Bashkir
- Basque
- Belarusian
- Bengali
- Bislama
- Bosnian
- Breton
- Bulgarian
- Burmese
- Catalan
- CentralKhmer
- Chamorro
- Chechen
- Chichewa
- Chinese
- ChurchSlavonic
- Chuvash
- Cornish
- Corsican
- Cree
- Croatian
- Czech
- Danish
- Divehi
- Dutch
- Dzongkha
- English
- Esperanto
- Estonian
- Ewe
- Faroese
- Fijian
- Finnish
- French
- Fulah
- Gaelic
- Galician
- Ganda
- Georgian
- German
- Greek
- Guarani
- Gujarati
- Haitian
- Hausa
- Hebrew
- Herero
- Hindi
- HiriMotu
- Hungarian
- Icelandic
- Ido
- Igbo
- Indonesian
- Interlingua
- Interlingue
- Inuktitut
- Inupiaq
- Irish
- Italian
- Japanese
- Javanese
- Kalaallisut
- Kannada
- Kanuri
- Kashmiri
- Kazakh
- Kikuyu
- Kinyarwanda
- Kirghiz
- Komi
- Kongo
- Korean
- Kuanyama
- Kurdish
- Lao
- Latin
- Latvian
- Limburgan
- Lingala
- Lithuanian
- LubaKatanga
- Luxembourgish
- Macedonian
- Malagasy
- Malay
- Malayalam
- Maltese
- Manx
- Maori
- Marathi
- Marshallese
- Mongolian
- Nauru
- Navajo
- Ndonga
- Nepali
- NorthNdebele
- NorthernSami
- Norwegian
- NorwegianBokmål
- NorwegianNynorsk
- Occitan
- Ojibwa
- Oriya
- Oromo
- Ossetian
- Pali
- Pashto
- Persian
- Polish
- Portuguese
- Punjabi
- Quechua
- Romanian
- Romansh
- Rundi
- Russian
- Samoan
- Sango
- Sanskrit
- Sardinian
- Serbian
- Shona
- SichuanYi
- Sindhi
- Sinhala
- Slovak
- Slovenian
- Somali
- SouthNdebele
- SouthernSotho
- Spanish
- Sundanese
- Swahili
- Swati
- Swedish
- Tagalog
- Tahitian
- Tajik
- Tamil
- Tatar
- Telugu
- Thai
- Tibetan
- Tigrinya
- Tonga
- Tsonga
- Tswana
- Turkish
- Turkmen
- Twi
- Uighur
- Ukrainian
- Urdu
- Uzbek
- Venda
- Vietnamese
- Volapük
- Walloon
- Welsh
- WesternFrisian
- Wolof
- Xhosa
- Yiddish
- Yoruba
- Zhuang
- Zulu
Usage
import * as mod from "types";