StaticGramBot API
Раздел

Основные типы

Available types

All types used in the Bot API responses are represented as JSON-objects.

It is safe to use 32-bit signed integers for storing all Integer fields unless otherwise noted.

Optional fields may be not returned when irrelevant.

Типы 236

ТипОписание
UserThis object represents a Telegram user or bot.
ChatThis object represents a chat.
ChatFullInfoThis object contains full information about a chat.
MessageThis object represents a message.
MessageIdThis object represents a unique message identifier.
InaccessibleMessageThis object describes a message that was deleted or is otherwise inaccessible to the bot.
MaybeInaccessibleMessageThis object describes a message that can be inaccessible to the bot.
MessageEntityThis object represents one special entity in a text message.
TextQuoteThis object contains information about the quoted part of a message that is replied to by the given message.
ExternalReplyInfoThis object contains information about a message that is being replied to, which may come from another chat or forum topic.
ReplyParametersDescribes reply parameters for the message that is being sent.
EphemeralMessageParameters
MessageOriginThis object describes the origin of a message.
MessageOriginUserThe message was originally sent by a known user.
MessageOriginHiddenUserThe message was originally sent by an unknown user.
MessageOriginChatThe message was originally sent on behalf of a chat to a group chat.
MessageOriginChannelThe message was originally sent to a channel chat.
PhotoSizeThis object represents one size of a photo or a file / sticker thumbnail.
AnimationThis object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound).
AudioThis object represents an audio file to be treated as music by the Telegram clients.
DocumentThis object represents a general file (as opposed to photos , voice messages and audio files ).
LivePhotoThis object represents a live photo.
StoryThis object represents a story.
VideoQualityThis object represents a video file of a specific quality.
VideoThis object represents a video file.
VideoNoteThis object represents a video message .
VoiceThis object represents a voice note.
PaidMediaInfoDescribes the paid media added to a message.
PaidMediaThis object describes paid media.
PaidMediaLivePhotoThe paid media is a live photo .
PaidMediaPhotoThe paid media is a photo.
PaidMediaPreviewThe paid media isn't available before the payment.
PaidMediaVideoThe paid media is a video.
ContactThis object represents a phone contact.
DiceThis object represents an animated emoji that displays a random value.
LinkRepresents an HTTP link.
PollMediaAt most one of the optional fields can be present in any given object.
InputPollMediaThis object represents the content of a poll description or a quiz explanation to be sent.
InputPollOptionMediaThis object represents the content of a poll option to be sent.
PollOptionThis object contains information about one answer option in a poll.
InputPollOptionThis object contains information about one answer option in a poll to be sent.
PollAnswerThis object represents an answer of a user in a non-anonymous poll.
PollThis object contains information about a poll.
ChecklistTaskDescribes a task in a checklist.
ChecklistDescribes a checklist.
InputChecklistTaskDescribes a task to add to a checklist.
InputChecklistDescribes a checklist to create.
LocationThis object represents a point on the map.
VenueThis object represents a venue.
WebAppDataDescribes data sent from a Web App to the bot.
ProximityAlertTriggeredThis object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user.
MessageAutoDeleteTimerChangedThis object represents a service message about a change in auto-delete timer settings.
ManagedBotCreatedThis object contains information about the bot that was created to be managed by the current bot.
ManagedBotUpdatedThis object contains information about the creation, token update, or owner update of a bot that is managed by the current bot.
BotSubscriptionUpdatedThis object contains information about changes to a user payment subscription toward the current bot.
MessageGenerationStoppedThis object describes an update about a user stopping message generation.
PollOptionAddedDescribes a service message about an option added to a poll.
PollOptionDeletedDescribes a service message about an option deleted from a poll.
ChatBoostAddedThis object represents a service message about a user boosting a chat.
BackgroundFillThis object describes the way a background is filled based on the selected colors.
BackgroundFillSolidThe background is filled using the selected color.
BackgroundFillGradientThe background is a gradient fill.
BackgroundFillFreeformGradientThe background is a freeform gradient that rotates after every message in the chat.
BackgroundTypeThis object describes the type of a background.
BackgroundTypeFillThe background is automatically filled based on the selected colors.
BackgroundTypeWallpaperThe background is a wallpaper in the JPEG format.
BackgroundTypePatternThe 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.
BackgroundTypeChatThemeThe background is taken directly from a built-in chat theme.
ChatBackgroundThis object represents a chat background.
ChecklistTasksDoneDescribes a service message about checklist tasks marked as done or not done.
ChecklistTasksAddedDescribes a service message about tasks added to a checklist.
CommunityChatAddedDescribes a service message about a chat or a bot being added to a community.
CommunityChatJoinedDescribes a service message about a chat being joined by a user from a community.
CommunityChatRemovedDescribes a service message about a chat or a bot being removed from a community.
ForumTopicCreatedThis object represents a service message about a new forum topic created in the chat.
ForumTopicClosedThis object represents a service message about a forum topic closed in the chat.
ForumTopicEditedThis object represents a service message about an edited forum topic.
ForumTopicReopenedThis object represents a service message about a forum topic reopened in the chat.
GeneralForumTopicHiddenThis object represents a service message about General forum topic hidden in the chat.
GeneralForumTopicUnhiddenThis object represents a service message about General forum topic unhidden in the chat.
SharedUserThis object contains information about a user that was shared with the bot using a KeyboardButtonRequestUsers button.
UsersSharedThis object contains information about the users whose identifiers were shared with the bot using a KeyboardButtonRequestUsers button.
ChatSharedThis object contains information about a chat that was shared with the bot using a KeyboardButtonRequestChat button.
WriteAccessAllowedThis 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 e...
VideoChatScheduledThis object represents a service message about a video chat scheduled in the chat.
VideoChatStartedThis object represents a service message about a video chat started in the chat.
VideoChatEndedThis object represents a service message about a video chat ended in the chat.
VideoChatParticipantsInvitedThis object represents a service message about new members invited to a video chat.
PaidMessagePriceChangedDescribes a service message about a change in the price of paid messages within a chat.
DirectMessagePriceChangedDescribes a service message about a change in the price of direct messages sent to a channel chat.
SuggestedPostApprovedDescribes a service message about the approval of a suggested post.
SuggestedPostApprovalFailedDescribes a service message about the failed approval of a suggested post.
SuggestedPostDeclinedDescribes a service message about the rejection of a suggested post.
SuggestedPostPaidDescribes a service message about a successful payment for a suggested post.
SuggestedPostRefundedDescribes a service message about a payment refund for a suggested post.
GiveawayCreatedThis object represents a service message about the creation of a scheduled giveaway.
GiveawayThis object represents a message about a scheduled giveaway.
GiveawayWinnersThis object represents a message about the completion of a giveaway with public winners.
GiveawayCompletedThis object represents a service message about the completion of a giveaway without public winners.
LinkPreviewOptionsDescribes the options used for link preview generation.
SuggestedPostPriceDescribes the price of a suggested post.
SuggestedPostInfoContains information about a suggested post.
SuggestedPostParametersContains parameters of a post that is being suggested by the bot.
DirectMessagesTopicDescribes a topic of a direct messages chat.
UserProfilePhotosThis object represent a user's profile pictures.
UserProfileAudiosThis object represents the audios displayed on a user's profile.
FileThis object represents a file ready to be downloaded.
WebAppInfoDescribes a Web App .
ReplyKeyboardMarkupThis object represents a custom keyboard with reply options (see Introduction to bots for details and examples).
KeyboardButtonThis object represents one button of the reply keyboard.
KeyboardButtonRequestUsersThis object defines the criteria used to request suitable users.
KeyboardButtonRequestChatThis object defines the criteria used to request a suitable chat.
KeyboardButtonRequestManagedBotThis object defines the parameters for the creation of a managed bot.
KeyboardButtonPollTypeThis object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed.
ReplyKeyboardRemoveUpon receiving a message with this object, Telegram clients will remove the current custom keyboard and display the default letter-keyboard.
InlineKeyboardMarkupThis object represents an inline keyboard that appears right next to the message it belongs to.
InlineKeyboardButtonThis object represents one button of an inline keyboard.
LoginUrlThis object represents a parameter of the inline keyboard button used to automatically authorize a user.
SwitchInlineQueryChosenChatThis object represents an inline button that switches the current user to inline mode in a chosen chat, with an optional default inline query.
CopyTextButtonThis object represents an inline keyboard button that copies specified text to the clipboard.
DisabledButtonThis object represents a disabled button which does nothing.
CallbackQueryThis object represents an incoming callback query from a callback button in an inline keyboard .
ForceReplyUpon 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').
CommunityRepresents a community (a group of chats).
ChatPhotoThis object represents a chat photo.
ChatInviteLinkRepresents an invite link for a chat.
ChatAdministratorRightsRepresents the rights of an administrator in a chat.
ChatMemberUpdatedThis object represents changes in the status of a chat member.
ChatMemberThis object contains information about one member of a chat.
ChatMemberOwnerRepresents a chat member that owns the chat and has all administrator privileges.
ChatMemberAdministratorRepresents a chat member that has some additional privileges.
ChatMemberMemberRepresents a chat member that has no additional privileges or restrictions.
ChatMemberRestrictedRepresents a chat member that is under certain restrictions in the chat.
ChatMemberLeftRepresents a chat member that isn't currently a member of the chat, but may join it themselves.
ChatMemberBannedRepresents a chat member that was banned in the chat and can't return to the chat or view chat messages.
ChatJoinRequestRepresents a join request sent to a chat.
ChatPermissionsDescribes actions that a non-administrator user is allowed to take in a chat.
BirthdateDescribes the birthdate of a user.
BusinessIntroContains information about the start page settings of a Telegram Business account.
BusinessLocationContains information about the location of a Telegram Business account.
BusinessOpeningHoursIntervalDescribes an interval of time during which a business is open.
BusinessOpeningHoursDescribes the opening hours of a business.
UserRatingThis object describes the rating of a user based on their Telegram Star spendings.
StoryAreaPositionDescribes the position of a clickable area within a story.
LocationAddressDescribes the physical address of a location.
StoryAreaTypeDescribes the type of a clickable area on a story.
StoryAreaTypeLocationDescribes a story area pointing to a location.
StoryAreaTypeSuggestedReactionDescribes a story area pointing to a suggested reaction.
StoryAreaTypeLinkDescribes a story area pointing to an HTTP or tg:// link.
StoryAreaTypeWeatherDescribes a story area containing weather information.
StoryAreaTypeUniqueGiftDescribes a story area pointing to a unique gift.
StoryAreaDescribes a clickable area on a story media.
ChatLocationRepresents a location to which a chat is connected.
ReactionTypeThis object describes the type of a reaction.
ReactionTypeEmojiThe reaction is based on an emoji.
ReactionTypeCustomEmojiThe reaction is based on a custom emoji.
ReactionTypePaidThe reaction is paid.
ReactionCountRepresents a reaction added to a message along with the number of times it was added.
MessageReactionUpdatedThis object represents a change of a reaction on a message performed by a user.
MessageReactionCountUpdatedThis object represents reaction changes on a message with anonymous reactions.
ForumTopicThis object represents a forum topic.
GiftBackgroundThis object describes the background of a gift.
GiftThis object represents a gift that can be sent by the bot.
GiftsThis object represent a list of gifts.
UniqueGiftModelThis object describes the model of a unique gift.
UniqueGiftSymbolThis object describes the symbol shown on the pattern of a unique gift.
UniqueGiftBackdropColorsThis object describes the colors of the backdrop of a unique gift.
UniqueGiftBackdropThis object describes the backdrop of a unique gift.
UniqueGiftColorsThis object contains information about the color scheme for a user's name, message replies and link previews based on a unique gift.
UniqueGiftThis object describes a unique gift that was upgraded from a regular gift.
GiftInfoDescribes a service message about a regular gift that was sent or received.
UniqueGiftInfoDescribes a service message about a unique gift that was sent or received.
OwnedGiftThis object describes a gift received and owned by a user or a chat.
OwnedGiftRegularDescribes a regular gift owned by a user or a chat.
OwnedGiftUniqueDescribes a unique gift received and owned by a user or a chat.
OwnedGiftsContains the list of gifts received and owned by a user or a chat.
BotAccessSettingsThis object describes the access settings of a bot.
AcceptedGiftTypesThis object describes the types of gifts that can be gifted to a user or a chat.
StarAmountDescribes an amount of Telegram Stars.
BotCommandThis object represents a bot command.
BotCommandScopeThis object represents the scope to which bot commands are applied.
BotCommandScopeDefaultRepresents the default scope of bot commands.
BotCommandScopeAllPrivateChatsRepresents the scope of bot commands, covering all private chats.
BotCommandScopeAllGroupChatsRepresents the scope of bot commands, covering all group and supergroup chats.
BotCommandScopeAllChatAdministratorsRepresents the scope of bot commands, covering all group and supergroup chat administrators.
BotCommandScopeChatRepresents the scope of bot commands, covering a specific chat.
BotCommandScopeChatAdministratorsRepresents the scope of bot commands, covering all administrators of a specific group or supergroup chat.
BotCommandScopeChatMemberRepresents the scope of bot commands, covering a specific member of a group or supergroup chat.
BotNameThis object represents the bot's name.
BotDescriptionThis object represents the bot's description.
BotShortDescriptionThis object represents the bot's short description.
MenuButtonThis object describes the bot's menu button in a private chat.
MenuButtonCommandsRepresents a menu button, which opens the bot's list of commands.
MenuButtonWebAppRepresents a menu button, which launches a Web App .
MenuButtonDefaultDescribes that no specific value for the menu button was set.
ChatBoostSourceThis object describes the source of a chat boost.
ChatBoostSourcePremiumThe boost was obtained by subscribing to Telegram Premium or by gifting a Telegram Premium subscription to another user.
ChatBoostSourceGiftCodeThe boost was obtained by the creation of Telegram Premium gift codes to boost a chat.
ChatBoostSourceGiveawayThe boost was obtained by the creation of a Telegram Premium or a Telegram Star giveaway.
ChatBoostThis object contains information about a chat boost.
ChatBoostUpdatedThis object represents a boost added to a chat or changed.
ChatBoostRemovedThis object represents a boost removed from a chat.
ChatOwnerLeftDescribes a service message about the chat owner leaving the chat.
ChatOwnerChangedDescribes a service message about an ownership change in the chat.
UserChatBoostsThis object represents a list of boosts added to a chat by a user.
BusinessBotRightsRepresents the rights of a business bot.
BusinessConnectionDescribes the connection of the bot with a business account.
BusinessMessagesDeletedThis object is received when messages are deleted from a connected business account.
SentWebAppMessageDescribes an inline message sent by a Web App on behalf of a user.
SentGuestMessageDescribes an inline message sent by a guest bot.
PreparedInlineMessageDescribes an inline message to be sent by a user of a Mini App.
PreparedKeyboardButtonDescribes a keyboard button to be used by a user of a Mini App.
ResponseParametersDescribes why a request was unsuccessful.
InputMediaThis object represents the content of a media message to be sent.
InputMediaAnimationRepresents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.
InputMediaAudioRepresents an audio file to be treated as music to be sent.
InputMediaDocumentRepresents a general file to be sent.
InputMediaLinkRepresents an HTTP link to be sent.
InputMediaLivePhotoRepresents a live photo to be sent.
InputMediaLocationRepresents a location to be sent.
InputMediaPhotoRepresents a photo to be sent.
InputMediaStickerRepresents a sticker file to be sent.
InputMediaVenueRepresents a venue to be sent.
InputMediaVideoRepresents a video to be sent.
InputMediaVoiceNoteRepresents a voice message file to be sent.
InputFileThis object represents the contents of a file to be uploaded.
InputPaidMediaThis object describes the paid media to be sent.
InputPaidMediaLivePhotoThe paid media to send is a live photo.
InputPaidMediaPhotoThe paid media to send is a photo.
InputPaidMediaVideoThe paid media to send is a video.
InputProfilePhotoThis object describes a profile photo to set.
InputProfilePhotoStaticA static profile photo in the .JPG format.
InputProfilePhotoAnimatedAn animated profile photo in the MPEG4 format.
InputStoryContentThis object describes the content of a story to post.
InputStoryContentPhotoDescribes a photo to post as a story.
InputStoryContentVideoDescribes a video to post as a story.

Описания методов и типов взяты из официальной документации Telegram Bot API (Bot API 10.3). Адрес API: https://api.staticgram.top