Serialized Form
-
Package org.telegram.telegrambots.meta.api.interfaces
-
Package org.telegram.telegrambots.meta.api.objects
-
Class org.telegram.telegrambots.meta.api.objects.ApiResponse
class ApiResponse extends Object implements Serializable-
Serialized Fields
-
errorCode
Integer errorCode
-
errorDescription
String errorDescription
-
ok
Boolean ok
-
parameters
ResponseParameters parameters
-
result
T result
-
-
-
Class org.telegram.telegrambots.meta.api.objects.Audio
class Audio extends Object implements Serializable-
Serialized Fields
-
duration
Integer duration
Integer Duration of the audio in seconds as defined by sender -
fileId
String fileId
Identifier for this file, which can be used to download or reuse the file -
fileName
String fileName
Optional. Original filename as defined by sender -
fileSize
Long fileSize
Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value. -
fileUniqueId
String fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file. -
mimeType
String mimeType
Optional. MIME type of the file as defined by sender -
performer
String performer
Optional. Performer of the audio as defined by sender or by audio tags -
thumb
PhotoSize thumb
Optional. Thumbnail of the album cover to which the music file belongs -
title
String title
Optional. Title of the audio as defined by sender or by audio tags
-
-
-
Class org.telegram.telegrambots.meta.api.objects.CallbackQuery
class CallbackQuery extends Object implements Serializable-
Serialized Fields
-
chatInstance
String chatInstance
Identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games. -
data
String data
Optional. Data associated with the callback button. -
from
User from
Sender -
gameShortName
String gameShortName
Optional. Short name of a Game to be returned, serves as the unique identifier for the game -
id
String id
Unique identifier for this query -
inlineMessageId
String inlineMessageId
Optional. Identifier of the message sent via the bot in inline mode, that originated the query -
message
Message message
Optional. Message with the callback button that originated the query.
-
-
-
Class org.telegram.telegrambots.meta.api.objects.Chat
class Chat extends Object implements Serializable-
Serialized Fields
-
activeUsernames
List<String> activeUsernames
Optional. If non-empty, the list of all active chat usernames; for private chats, supergroups and channels. Returned only in getChat. -
bio
String bio
Optional. Bio of the other party in a private chat. Returned only in getChat. -
canSetStickerSet
Boolean canSetStickerSet
Optional. True, if the bot can change group the sticker set. Returned only in getChat. -
description
String description
Optional. Description, for groups, supergroups and channel chats. Returned only in getChat. -
emojiStatusCustomEmojiId
String emojiStatusCustomEmojiId
Optional. Custom emoji identifier of emoji status of the other party in a private chat. Returned only in getChat. -
firstName
String firstName
Optional Username of the chat, only for private chats and channels if available -
hasPrivateForwards
Boolean hasPrivateForwards
Optional. True, if privacy settings of the other party in the private chat allows to use tg://user?id=links only in chats with the user. Returned only in getChat. -
HasProtectedContent
Boolean HasProtectedContent
Optional. True, if messages from the chat can't be forwarded to other chats. Returned only in getChat. -
hasRestrictedVoiceAndVideoMessages
Boolean hasRestrictedVoiceAndVideoMessages
Optional. True, if the privacy settings of the other party restrict sending voice and video note messages in the private chat. Returned only in getChat. -
id
@NonNull Long id
Unique identifier for this chat. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier. -
inviteLink
String inviteLink
Optional. Primary invite link, for groups, supergroups and channel chats. Returned only in getChat. -
isForum
Boolean isForum
Optional. True, if the supergroup chat is a forum (has topics enabled) -
joinByRequest
Boolean joinByRequest
Optional. True, if all users directly joining the supergroup need to be approved by supergroup administrators. Returned only in getChat. -
joinToSendMessages
Boolean joinToSendMessages
Optional. True, if users need to join the supergroup before they can send messages. Returned only in getChat. -
lastName
String lastName
Optional. Interlocutor's first name for private chats -
linkedChatId
Long linkedChatId
Optional. Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice versa; for supergroups and channel chats. This identifier may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier. Returned only in getChat. -
location
ChatLocation location
Optional. For supergroups, the location to which the supergroup is connected. Returned only in getChat. -
messageAutoDeleteTime
Integer messageAutoDeleteTime
Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds. Returned only in getChat. -
permissions
ChatPermissions permissions
Optional. Default chat member permissions, for groups and supergroups. Returned only in getChat. -
photo
ChatPhoto photo
Optional. Chat photo. Returned only in getChat. -
pinnedMessage
Message pinnedMessage
Optional. The most recent pinned message (by sending date). Returned only in getChat. -
slowModeDelay
Integer slowModeDelay
Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unpriviledged user. Returned only in getChat. -
stickerSetName
String stickerSetName
Optional. For supergroups, name of Group sticker set. Returned only in getChat. -
title
String title
Optional. Title of the chat, only for channels and group chat -
type
@NonNull String type
Type of the chat, one of “private”, “group” or “channel” or "supergroup" -
userName
String userName
Optional. Interlocutor's last name for private chats
-
-
-
Class org.telegram.telegrambots.meta.api.objects.ChatInviteLink
class ChatInviteLink extends Object implements Serializable-
Serialized Fields
-
createsJoinRequest
Boolean createsJoinRequest
True, if users joining the chat via the link need to be approved by chat administrators -
creator
User creator
Creator of the link -
expireDate
Integer expireDate
Optional. Point in time (Unix timestamp) when the link will expire or has been expired -
inviteLink
String inviteLink
The invite link. If the link was created by another chat administrator, then the second part of the link will be replaced with “…”. -
isPrimary
Boolean isPrimary
True, if the link is primary -
isRevoked
Boolean isRevoked
True, if the link is revoked -
memberLimit
Integer memberLimit
Optional. Maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999 -
name
String name
Optional. Invite link name -
pendingJoinRequestCount
Integer pendingJoinRequestCount
Optional. Number of pending join requests created using this link
-
-
-
Class org.telegram.telegrambots.meta.api.objects.ChatJoinRequest
class ChatJoinRequest extends Object implements Serializable-
Serialized Fields
-
bio
String bio
Optional. Bio of the user. -
chat
Chat chat
Chat to which the request was sent -
date
Integer date
Date the request was sent in Unix time -
inviteLink
ChatInviteLink inviteLink
Optional. Chat invite link that was used by the user to send the join request -
user
User user
User that sent the join request
-
-
-
Class org.telegram.telegrambots.meta.api.objects.ChatLocation
class ChatLocation extends Object implements Serializable -
Class org.telegram.telegrambots.meta.api.objects.ChatMemberUpdated
class ChatMemberUpdated extends Object implements Serializable-
Serialized Fields
-
chat
Chat chat
Chat the user belongs to -
date
Integer date
Date the change was done in Unix time -
from
User from
Performer of the action, which resulted in the change -
inviteLink
ChatInviteLink inviteLink
Optional. Chat invite link, which was used by the user to join the chat; for joining by invite link events only. -
newChatMember
ChatMember newChatMember
New information about the chat member -
oldChatMember
ChatMember oldChatMember
Previous information about the chat member
-
-
-
Class org.telegram.telegrambots.meta.api.objects.ChatPermissions
class ChatPermissions extends Object implements Serializable-
Serialized Fields
-
canAddWebPagePreviews
Boolean canAddWebPagePreviews
Optional. True, if the user is allowed to add web page previews to their messages, implies can_send_media_messages -
canChangeInfo
Boolean canChangeInfo
Optional. True, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups -
canInviteUsers
Boolean canInviteUsers
Optional. True, if the user is allowed to invite new users to the chat -
canPinMessages
Boolean canPinMessages
Optional. True, if the user is allowed to pin messages. Ignored in public supergroups -
canSendMediaMessages
Boolean canSendMediaMessages
Optional. True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes, implies can_send_messages -
canSendMessages
Boolean canSendMessages
Optional. True, if the user is allowed to send text messages, contacts, locations and venues -
canSendOtherMessages
Boolean canSendOtherMessages
Optional. True, if the user is allowed to send animations, games, stickers and use inline bots, implies can_send_media_messages -
canSendPolls
Boolean canSendPolls
Optional. True, if the user is allowed to send polls, implies can_send_messages
-
-
-
Class org.telegram.telegrambots.meta.api.objects.ChatPhoto
class ChatPhoto extends Object implements Serializable-
Serialized Fields
-
bigFileId
String bigFileId
File identifier of big (640x640) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed. -
bigFileUniqueId
String bigFileUniqueId
Unique file identifier of big (640x640) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file. -
smallFileId
String smallFileId
File identifier of small (160x160) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed. -
smallFileUniqueId
String smallFileUniqueId
Unique file identifier of small (160x160) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
-
-
-
Class org.telegram.telegrambots.meta.api.objects.Contact
class Contact extends Object implements Serializable-
Serialized Fields
-
firstName
String firstName
Contact's first name -
lastName
String lastName
Optional. Contact's last name -
phoneNumber
String phoneNumber
Contact's phone number -
userId
Long userId
Optional. Contact's user identifier in Telegram -
vCard
String vCard
Optional. Additional data about the contact in the form of a vCard
-
-
-
Class org.telegram.telegrambots.meta.api.objects.Dice
class Dice extends Object implements Serializable -
Class org.telegram.telegrambots.meta.api.objects.Document
class Document extends Object implements Serializable-
Serialized Fields
-
fileId
String fileId
Identifier for this file, which can be used to download or reuse the file -
fileName
String fileName
Optional. Original filename as defined by sender -
fileSize
Long fileSize
Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value. -
fileUniqueId
String fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file. -
mimeType
String mimeType
Optional. Mime type of a file as defined by sender -
thumb
PhotoSize thumb
Document thumbnail as defined by sender
-
-
-
Class org.telegram.telegrambots.meta.api.objects.File
class File extends Object implements Serializable-
Serialized Fields
-
fileId
String fileId
Identifier for this file, which can be used to download or reuse the file -
filePath
String filePath
Optional. File path. Use https://api.telegram.org/file/bot/ to get the file. -
fileSize
Long fileSize
Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value. -
fileUniqueId
String fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
-
-
-
Class org.telegram.telegrambots.meta.api.objects.InputFile
class InputFile extends Object implements Serializable-
Serialized Fields
-
attachName
String attachName
-
isNew
boolean isNew
True if the file is new, false if it is a file_id -
mediaName
String mediaName
Name of the media to upload -
newMediaFile
File newMediaFile
New media file -
newMediaStream
InputStream newMediaStream
New media stream
-
-
-
Class org.telegram.telegrambots.meta.api.objects.Location
class Location extends Object implements Serializable-
Serialized Fields
-
heading
Integer heading
Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only. -
horizontalAccuracy
Double horizontalAccuracy
Optional. The radius of uncertainty for the location, measured in meters; 0-1500 -
latitude
@NonNull Double latitude
Latitude as defined by sender -
livePeriod
Integer livePeriod
Optional. Time relative to the message sending date, during which the location will be updated, in seconds. For active live locations only. -
longitude
@NonNull Double longitude
Longitude as defined by sender -
proximityAlertRadius
Integer proximityAlertRadius
Optional. Maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only.
-
-
-
Class org.telegram.telegrambots.meta.api.objects.LoginUrl
class LoginUrl extends Object implements Serializable-
Serialized Fields
-
botUsername
String botUsername
Optional. Username of a bot, which will be used for user authorization. See Setting up a bot for more details. If not specified, the current bot's username will be assumed. The url's domain must be the same as the domain linked with the bot. -
forwardText
String forwardText
-
requestWriteAccess
Boolean requestWriteAccess
-
url
@NonNull String url
An HTTP URL to be opened with user authorization data added to the query string when the button is pressed. If the user refuses to provide authorization data, the original URL without information about the user will be opened. The data added is the same as described in Receiving authorization data.
-
-
-
Class org.telegram.telegrambots.meta.api.objects.Message
class Message extends Object implements Serializable-
Serialized Fields
-
animation
Animation animation
Optional. Message is an animation, information about the animation. For backward compatibility, when this field is set, the document field will be also set -
audio
Audio audio
Optional. Message is an audio file, information about the file -
authorSignature
String authorSignature
Optional. Signature of the post author for messages in channels, or the custom title of an anonymous group administrator -
caption
String caption
Optional. Caption for the document, photo or video, 0-200 characters -
captionEntities
List<MessageEntity> captionEntities
Optional. For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption -
channelChatCreated
Boolean channelChatCreated
Optional. Service message: the channel has been created. This field can‘t be received in a message coming through updates, because bot can’t be a member of a channel when it is created. It can only be found in reply_to_message if someone replies to a very first message in a channel. -
chat
Chat chat
Conversation the message belongs to -
connectedWebsite
String connectedWebsite
Optional. The domain name of the website on which the user has logged in -
contact
Contact contact
Optional. Message is a shared contact, information about the contact -
date
Integer date
Date the message was sent in Unix time -
deleteChatPhoto
Boolean deleteChatPhoto
Optional. Informs that the chat photo was deleted -
dice
Dice dice
Optional. Message is a dice with random value from 1 to 6 -
document
Document document
Optional. Message is a general file, information about the file -
editDate
Integer editDate
Optional. Date the message was last edited in Unix time -
entities
List<MessageEntity> entities
Optional. For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text -
forumTopicClosed
ForumTopicClosed forumTopicClosed
Optional. Service message: forum topic closed -
forumTopicCreated
ForumTopicCreated forumTopicCreated
Optional. Service message: forum topic created -
forumTopicReopened
ForumTopicReopened forumTopicReopened
Optional. Service message: forum topic reopened -
forwardDate
Integer forwardDate
Optional. For forwarded messages, date the original message was sent -
forwardFrom
User forwardFrom
Optional. For forwarded messages, sender of the original message -
forwardFromChat
Chat forwardFromChat
Optional. For messages forwarded from channels or from anonymous administrators, information about the original sender chat -
forwardFromMessageId
Integer forwardFromMessageId
Optional. For forwarded channel posts, identifier of the original message in the channel -
forwardSenderName
String forwardSenderName
Optional. Sender's name for messages forwarded from users who disallow adding a link to their account in forwarded messages. -
forwardSignature
String forwardSignature
Optional. Post author signature for messages forwarded from channel chats -
from
User from
Optional. Sender, can be empty for messages sent to channels -
game
Game game
Optional. Message is a game, information about the game -
groupchatCreated
Boolean groupchatCreated
Optional. Informs that the group has been created -
hasProtectedContent
Boolean hasProtectedContent
Optional. True, if the message can't be forwarded -
invoice
Invoice invoice
Optional. Message is an invoice for a payment, information about the invoice. -
isAutomaticForward
Boolean isAutomaticForward
Optional. True, if the message is a channel post that was automatically forwarded to the connected discussion group -
isTopicMessage
Boolean isTopicMessage
Optional. True, if the message is sent to a forum topic -
leftChatMember
User leftChatMember
Optional. A member was removed from the group, information about them (this member may be bot itself) -
location
Location location
Optional. Message is a shared location, information about the location -
mediaGroupId
String mediaGroupId
Optional. The unique identifier of a media message group this message belongs to -
messageAutoDeleteTimerChanged
MessageAutoDeleteTimerChanged messageAutoDeleteTimerChanged
Optional. Service message: auto-delete timer settings changed in the chat -
messageId
Integer messageId
Integer Unique message identifier -
messageThreadId
Integer messageThreadId
Optional. Unique identifier of a message thread or a forum topic to which the message belongs; for supergroups only -
migrateFromChatId
Long migrateFromChatId
Optional. The supergroup has been migrated from a group with the specified identifier. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier. -
migrateToChatId
Long migrateToChatId
Optional. The group has been migrated to a supergroup with the specified identifier. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier. -
newChatMembers
List<User> newChatMembers
Optional. New members were added to the group or supergroup, information about them (the bot itself may be one of these members) -
newChatPhoto
List<PhotoSize> newChatPhoto
Optional. A chat photo was change to this value -
newChatTitle
String newChatTitle
Optional. A chat title was changed to this value -
passportData
PassportData passportData
Optional. Telegram Passport data -
photo
List<PhotoSize> photo
Optional. Message is a photo, available sizes of the photo -
pinnedMessage
Message pinnedMessage
Optional. Specified message was pinned. Note that the Message object in this field will not contain further reply_to_message fields even if it is itself a reply. -
poll
Poll poll
Optional. Message is a native poll, information about the poll -
proximityAlertTriggered
ProximityAlertTriggered proximityAlertTriggered
Optional. Service message. A user in the chat triggered another user's proximity alert while sharing Live Location. -
replyMarkup
InlineKeyboardMarkup replyMarkup
Inline keyboard attached to the message. -
replyToMessage
Message replyToMessage
-
senderChat
Chat senderChat
Optional. Sender of the message, sent on behalf of a chat. The channel itself for channel messages. The supergroup itself for messages from anonymous group administrators. The linked channel for messages automatically forwarded to the discussion group -
sticker
Sticker sticker
Optional. Message is a sticker, information about the sticker -
successfulPayment
SuccessfulPayment successfulPayment
Optional. Message is a service message about a successful payment, information about the payment. -
superGroupCreated
Boolean superGroupCreated
Optional. Service message: the supergroup has been created. This field can‘t be received in a message coming through updates, because bot can’t be a member of a supergroup when it is created. It can only be found in reply_to_message if someone replies to a very first message in a directly created supergroup. -
text
String text
Optional. For text messages, the actual UTF-8 text of the message -
venue
Venue venue
Optional. Message is a venue, information about the venue -
viaBot
User viaBot
Optional. Bot through which the message was sent -
video
Video video
Optional. Message is a video, information about the video -
videoChatEnded
VideoChatEnded videoChatEnded
Optional. Service message: video chat ended -
videoChatParticipantsInvited
VideoChatParticipantsInvited videoChatParticipantsInvited
Optional. Service message: new participants invited to a video chat -
videoChatScheduled
VideoChatScheduled videoChatScheduled
Optional. Service message: video chat scheduled -
videoChatStarted
VideoChatStarted videoChatStarted
Optional. Service message: video chat started -
videoNote
VideoNote videoNote
Optional. Message is a video note, information about the video message -
voice
Voice voice
Optional. Message is a voice message, information about the file -
webAppData
WebAppData webAppData
Optional. Service message: data sent by a web app
-
-
-
Class org.telegram.telegrambots.meta.api.objects.MessageAutoDeleteTimerChanged
class MessageAutoDeleteTimerChanged extends Object implements Serializable-
Serialized Fields
-
messageAutoDeleteTime
Integer messageAutoDeleteTime
New auto-delete time for messages in the chat
-
-
-
Class org.telegram.telegrambots.meta.api.objects.MessageEntity
class MessageEntity extends Object implements Serializable-
Serialized Fields
-
customEmojiId
String customEmojiId
Optional. For “custom_emoji” only, unique identifier of the custom emoji. Use getCustomEmojiStickers to get full information about the sticker -
language
String language
Optional. For “pre” only, the programming language of the entity text -
length
@NonNull Integer length
Length of the entity in UTF-16 code units -
offset
@NonNull Integer offset
Offset in UTF-16 code units to the start of the entity -
text
String text
Text present in the entity. Computed from offset and length -
type
@NonNull String type
Type of the entity. Currently, can be: - “mention” (@username) - “hashtag” (#hashtag) - “cashtag” ($USD) - “bot_command” (/start@jobs_bot) - “url” (https://telegram.org) - “email” ([email protected]) - “phone_number” (+1-212-555-0123), - “bold” (bold text) - “italic” (italic text) - “underline” (underlined text) - “strikethrough” (strikethrough text) - “spoiler” (spoiler message) - “code” (monowidth string) - “pre” (monowidth block) - “text_link” (for clickable text URLs) - “text_mention” (for users without usernames) - "custom_emoji" (for inline custom emoji stickers) -
url
String url
Optional. For “text_link” only, url that will be opened after user taps on the text -
user
User user
Optional. For “text_mention” only, the mentioned user
-
-
-
Class org.telegram.telegrambots.meta.api.objects.MessageId
class MessageId extends Object implements Serializable-
Serialized Fields
-
messageId
Long messageId
Unique message identifier
-
-
-
Class org.telegram.telegrambots.meta.api.objects.PhotoSize
class PhotoSize extends Object implements Serializable-
Serialized Fields
-
fileId
String fileId
Identifier for this file, which can be used to download or reuse the file -
filePath
String filePath
Undocumented field. Optional. Can contain the path to download the file directly without calling to getFile -
fileSize
Integer fileSize
Optional. File size -
fileUniqueId
String fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file. -
height
Integer height
Photo height -
width
Integer width
Photo width
-
-
-
Class org.telegram.telegrambots.meta.api.objects.ProximityAlertTriggered
class ProximityAlertTriggered extends Object implements Serializable -
Class org.telegram.telegrambots.meta.api.objects.ResponseParameters
class ResponseParameters extends Object implements Serializable-
Serialized Fields
-
migrateToChatId
Long migrateToChatId
Optional. The group has been migrated to a supergroup with the specified identifier. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier. -
retryAfter
Integer retryAfter
Optional. In case of exceeding flood control a number of seconds to wait before the request can be repeated
-
-
-
Class org.telegram.telegrambots.meta.api.objects.Update
class Update extends Object implements Serializable-
Serialized Fields
-
callbackQuery
CallbackQuery callbackQuery
Optional. New incoming callback query -
channelPost
Message channelPost
Optional. New incoming channel post of any kind — text, photo, sticker, etc. -
chatJoinRequest
ChatJoinRequest chatJoinRequest
-
chatMember
ChatMemberUpdated chatMember
Optional. A chat member's status was updated in a chat. The bot must be an administrator in the chat and must explicitly specify “chat_member” in the list of allowed_updates to receive these updates. -
chosenInlineQuery
ChosenInlineQuery chosenInlineQuery
Optional. The result of an inline query that was chosen by a user and sent to their chat partner -
editedChannelPost
Message editedChannelPost
Optional. New version of a channel post that is known to the bot and was edited -
editedMessage
Message editedMessage
Optional. New version of a message that is known to the bot and was edited -
inlineQuery
InlineQuery inlineQuery
Optional. New incoming inline query -
message
Message message
Optional. New incoming message of any kind — text, photo, sticker, etc. -
myChatMember
ChatMemberUpdated myChatMember
Optional. The bot's chat member status was updated in a chat. For private chats, this update is received only when the bot is blocked or unblocked by the user. -
poll
Poll poll
Optional. New poll state. Bots receive only updates about polls, which are sent by the bot. -
pollAnswer
PollAnswer pollAnswer
Optional. A user changed their answer in a non-anonymous poll. -
preCheckoutQuery
PreCheckoutQuery preCheckoutQuery
Optional. New incoming pre-checkout query. Contains full information about checkout -
shippingQuery
ShippingQuery shippingQuery
Optional. New incoming shipping query. Only for invoices with flexible price -
updateId
Integer updateId
-
-
-
Class org.telegram.telegrambots.meta.api.objects.User
class User extends Object implements Serializable-
Serialized Fields
-
addedToAttachmentMenu
Boolean addedToAttachmentMenu
Optional. True, if this user added the bot to the attachment menu -
canJoinGroups
Boolean canJoinGroups
Optional. True, if the bot can be invited to groups. Returned only in getMe. -
canReadAllGroupMessages
Boolean canReadAllGroupMessages
Optional. True, if privacy mode is disabled for the bot. Returned only in getMe. -
firstName
@NonNull String firstName
User‘s or bot’s first name -
id
@NonNull Long id
Unique identifier for this user or bot. -
isBot
@NonNull Boolean isBot
True, if this user is a bot -
isPremium
Boolean isPremium
Optional. True, if this user is a Telegram Premium user -
languageCode
String languageCode
Optional. IETF language tag of the user's language -
lastName
String lastName
Optional. User‘s or bot’s last name -
supportInlineQueries
Boolean supportInlineQueries
Optional. True, if the bot supports inline queries. Returned only in getMe. -
userName
String userName
Optional. User‘s or bot’s username
-
-
-
Class org.telegram.telegrambots.meta.api.objects.UserProfilePhotos
class UserProfilePhotos extends Object implements Serializable -
Class org.telegram.telegrambots.meta.api.objects.Venue
class Venue extends Object implements Serializable-
Serialized Fields
-
address
String address
Address of the venue -
foursquareId
String foursquareId
Optional. Foursquare identifier of the venue -
foursquareType
String foursquareType
Optional. Foursquare type of the venue. -
googlePlaceId
String googlePlaceId
Optional. Google Places identifier of the venue -
googlePlaceType
String googlePlaceType
Optional. Google Places type of the venue. (See supported types.) -
location
Location location
Venue location -
title
String title
Name of the venue
-
-
-
Class org.telegram.telegrambots.meta.api.objects.Video
class Video extends Object implements Serializable-
Serialized Fields
-
duration
Integer duration
Duration of the video in seconds as defined by sender -
fileId
String fileId
Identifier for this file, which can be used to download or reuse the file -
fileName
String fileName
Optional. Original filename as defined by sender -
fileSize
Long fileSize
Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value. -
fileUniqueId
String fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file. -
height
Integer height
Video height as defined by sender -
mimeType
String mimeType
Optional. Mime type of file as defined by sender -
thumb
PhotoSize thumb
Video thumbnail -
width
Integer width
Video width as defined by sender
-
-
-
Class org.telegram.telegrambots.meta.api.objects.VideoNote
class VideoNote extends Object implements Serializable-
Serialized Fields
-
duration
Integer duration
Duration of the video in seconds as defined by sender -
fileId
String fileId
Identifier for this file, which can be used to download or reuse the file -
fileSize
Integer fileSize
Optional. File size -
fileUniqueId
String fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file. -
length
Integer length
Video width and height as defined by sender -
thumb
PhotoSize thumb
Optional. Video thumbnail
-
-
-
Class org.telegram.telegrambots.meta.api.objects.Voice
class Voice extends Object implements Serializable-
Serialized Fields
-
duration
Integer duration
Integer Duration of the audio in seconds as defined by sender -
fileId
String fileId
Identifier for this file, which can be used to download or reuse the file -
fileSize
Long fileSize
Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value. -
fileUniqueId
String fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file. -
mimeType
String mimeType
Optional. MIME type of the file as defined by sender
-
-
-
Class org.telegram.telegrambots.meta.api.objects.WebhookInfo
class WebhookInfo extends Object implements Serializable-
Serialized Fields
-
allowedUpdates
List<String> allowedUpdates
Optional. A list of update types the bot is subscribed to. Defaults to all update types -
hasCustomCertificate
Boolean hasCustomCertificate
True, if a custom certificate was provided for webhook certificate checks -
ipAddress
String ipAddress
Optional. Currently used webhook IP address -
lastErrorDate
Integer lastErrorDate
Optional. Unix time for the most recent error that happened when trying to deliver an update via webhook -
lastErrorMessage
String lastErrorMessage
Optional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook -
lastSynchronizationErrorDate
Integer lastSynchronizationErrorDate
Optional. Unix time of the most recent error that happened when trying to synchronize available updates with Telegram datacenters -
maxConnections
Integer maxConnections
Optional. Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery -
pendingUpdatesCount
Integer pendingUpdatesCount
Number updates awaiting delivery -
url
String url
Webhook URL, may be empty if webhook is not set up
-
-
-
-
Package org.telegram.telegrambots.meta.api.objects.adminrights
-
Class org.telegram.telegrambots.meta.api.objects.adminrights.ChatAdministratorRights
class ChatAdministratorRights extends Object implements Serializable-
Serialized Fields
-
canChangeInfo
Boolean canChangeInfo
True, if the user is allowed to change the chat title, photo and other settings -
canDeleteMessages
Boolean canDeleteMessages
True, if the administrator can delete messages of other users -
canEditMessages
Boolean canEditMessages
Optional. True, if the administrator can edit messages of other users and can pin messages; channels only -
canInviteUsers
Boolean canInviteUsers
True, if the user is allowed to invite new users to the chat -
canManageChat
Boolean canManageChat
True, if the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege -
canManageTopics
Boolean canManageTopics
Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only -
canManageVideoChats
Boolean canManageVideoChats
True, if the administrator can manage video chats -
canPinMessages
Boolean canPinMessages
Optional. True, if the user is allowed to pin messages; groups and supergroups only -
canPostMessages
Boolean canPostMessages
Optional. True, if the administrator can post in the channel; channels only -
canPromoteMembers
Boolean canPromoteMembers
True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by the user) -
canRestrictMembers
Boolean canRestrictMembers
True, if the administrator can restrict, ban or unban chat members -
isAnonymous
Boolean isAnonymous
True, if the user's presence in the chat is hidden
-
-
-
-
Package org.telegram.telegrambots.meta.api.objects.chatmember
-
Class org.telegram.telegrambots.meta.api.objects.chatmember.ChatMemberAdministrator
class ChatMemberAdministrator extends Object implements Serializable-
Serialized Fields
-
canBeEdited
Boolean canBeEdited
True, if the bot is allowed to edit administrator privileges of that user -
canChangeInfo
Boolean canChangeInfo
True, if the user is allowed to change the chat title, photo and other settings -
canDeleteMessages
Boolean canDeleteMessages
True, if the administrator can delete messages of other users -
canEditMessages
Boolean canEditMessages
True, if the administrator can edit messages of other users and can pin messages; channels only -
canInviteUsers
Boolean canInviteUsers
True, if the user is allowed to invite new users to the chat -
canManageChat
Boolean canManageChat
True, if the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege -
canManageTopics
Boolean canManageTopics
Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only -
canManageVideoChats
Boolean canManageVideoChats
True, if the administrator can manage video chats -
canPinMessages
Boolean canPinMessages
True, if the user is allowed to pin messages; groups and supergroups only -
canPostMessages
Boolean canPostMessages
True, if the administrator can post in the channel; channels only -
canPromoteMembers
Boolean canPromoteMembers
True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by the user) -
canRestrictMembers
Boolean canRestrictMembers
True, if the administrator can restrict, ban or unban chat members -
customTitle
String customTitle
Custom title for this user -
isAnonymous
Boolean isAnonymous
True, if the user's presence in the chat is hidden -
status
String status
The member's status in the chat, always “administrator” -
user
User user
Information about the user
-
-
-
Class org.telegram.telegrambots.meta.api.objects.chatmember.ChatMemberBanned
class ChatMemberBanned extends Object implements Serializable -
Class org.telegram.telegrambots.meta.api.objects.chatmember.ChatMemberLeft
class ChatMemberLeft extends Object implements Serializable -
Class org.telegram.telegrambots.meta.api.objects.chatmember.ChatMemberMember
class ChatMemberMember extends Object implements Serializable -
Class org.telegram.telegrambots.meta.api.objects.chatmember.ChatMemberOwner
class ChatMemberOwner extends Object implements Serializable -
Class org.telegram.telegrambots.meta.api.objects.chatmember.ChatMemberRestricted
class ChatMemberRestricted extends Object implements Serializable-
Serialized Fields
-
canAddWebpagePreviews
Boolean canAddWebpagePreviews
True, if the user is allowed to add web page previews to their messages -
canChangeInfo
Boolean canChangeInfo
True, if the user is allowed to change the chat title, photo and other settings -
canInviteUsers
Boolean canInviteUsers
True, if the user is allowed to invite new users to the chat -
canManageTopics
Boolean canManageTopics
True, if the user is allowed to create forum topics -
canPinMessages
Boolean canPinMessages
True, if the user is allowed to pin messages; groups and supergroups only -
canSendMediaMessages
Boolean canSendMediaMessages
True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes -
canSendMessages
Boolean canSendMessages
True, if the user is allowed to send text messages, contacts, locations and venues -
canSendOtherMessages
Boolean canSendOtherMessages
True, if the user is allowed to send animations, games, stickers and use inline bots -
canSendPolls
Boolean canSendPolls
True, if the user is allowed to send polls -
isMember
Boolean isMember
True, if the user is a member of the chat at the moment of the request -
status
String status
The member's status in the chat, always “restricted” -
untilDate
Integer untilDate
Date when restrictions will be lifted for this user; unix time -
user
User user
Information about the user
-
-
-
-
Package org.telegram.telegrambots.meta.api.objects.chatmember.serialization
-
Class org.telegram.telegrambots.meta.api.objects.chatmember.serialization.ChatMemberDeserializer
class ChatMemberDeserializer extends com.fasterxml.jackson.databind.deser.std.StdDeserializer<ChatMember> implements Serializable-
Serialized Fields
-
objectMapper
com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
-
-
Package org.telegram.telegrambots.meta.api.objects.commands
-
Class org.telegram.telegrambots.meta.api.objects.commands.BotCommand
class BotCommand extends Object implements Serializable
-
-
Package org.telegram.telegrambots.meta.api.objects.commands.scope
-
Class org.telegram.telegrambots.meta.api.objects.commands.scope.BotCommandScopeAllChatAdministrators
class BotCommandScopeAllChatAdministrators extends Object implements Serializable-
Serialized Fields
-
type
String type
Scope type, must be chat
-
-
-
Class org.telegram.telegrambots.meta.api.objects.commands.scope.BotCommandScopeAllGroupChats
class BotCommandScopeAllGroupChats extends Object implements Serializable-
Serialized Fields
-
type
String type
Scope type, must be chat
-
-
-
Class org.telegram.telegrambots.meta.api.objects.commands.scope.BotCommandScopeAllPrivateChats
class BotCommandScopeAllPrivateChats extends Object implements Serializable-
Serialized Fields
-
type
String type
Scope type, must be chat
-
-
-
Class org.telegram.telegrambots.meta.api.objects.commands.scope.BotCommandScopeChat
class BotCommandScopeChat extends Object implements Serializable -
Class org.telegram.telegrambots.meta.api.objects.commands.scope.BotCommandScopeChatAdministrators
class BotCommandScopeChatAdministrators extends Object implements Serializable -
Class org.telegram.telegrambots.meta.api.objects.commands.scope.BotCommandScopeChatMember
class BotCommandScopeChatMember extends Object implements Serializable -
Class org.telegram.telegrambots.meta.api.objects.commands.scope.BotCommandScopeDefault
class BotCommandScopeDefault extends Object implements Serializable-
Serialized Fields
-
type
String type
Scope type, must be chat
-
-
-
-
Package org.telegram.telegrambots.meta.api.objects.commands.scope.serialization
-
Class org.telegram.telegrambots.meta.api.objects.commands.scope.serialization.BotCommandScopeDeserializer
class BotCommandScopeDeserializer extends com.fasterxml.jackson.databind.deser.std.StdDeserializer<BotCommandScope> implements Serializable-
Serialized Fields
-
objectMapper
com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
-
-
Package org.telegram.telegrambots.meta.api.objects.forum
-
Class org.telegram.telegrambots.meta.api.objects.forum.ForumTopic
class ForumTopic extends Object implements Serializable-
Serialized Fields
-
-
Class org.telegram.telegrambots.meta.api.objects.forum.ForumTopicClosed
class ForumTopicClosed extends Object implements Serializable -
Class org.telegram.telegrambots.meta.api.objects.forum.ForumTopicCreated
class ForumTopicCreated extends Object implements Serializable -
Class org.telegram.telegrambots.meta.api.objects.forum.ForumTopicReopened
class ForumTopicReopened extends Object implements Serializable
-
-
Package org.telegram.telegrambots.meta.api.objects.games
-
Class org.telegram.telegrambots.meta.api.objects.games.Animation
class Animation extends Object implements Serializable-
Serialized Fields
-
duration
@NonNull Integer duration
Duration of the video in seconds as defined by sender -
fileId
@NonNull String fileId
Identifier for this file, which can be used to download or reuse the file -
fileName
String fileName
Optional. Original animation filename as defined by sender -
fileSize
Long fileSize
Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value. -
fileUniqueId
@NonNull String fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file. -
height
@NonNull Integer height
Video height as defined by sender -
mimetype
String mimetype
Optional. MIME type of the file as defined by sender -
thumb
PhotoSize thumb
Optional. Animation thumbnail as defined by sender -
width
@NonNull Integer width
Video width as defined by sender
-
-
-
Class org.telegram.telegrambots.meta.api.objects.games.CallbackGame
class CallbackGame extends Object implements Serializable -
Class org.telegram.telegrambots.meta.api.objects.games.Game
class Game extends Object implements Serializable-
Serialized Fields
-
animation
Animation animation
Optional. Animation -
description
@NonNull String description
Description of the game -
entities
List<MessageEntity> entities
Optional. Special entities that appear in text, such as usernames, URLs, bot commands, etc. -
photo
@NonNull List<PhotoSize> photo
Photo -
text
String text
Optional. Brief description of the game or high scores included in the game message. Can be automatically edited to include current high scores for the game when the bot calls setGameScore, or manually edited using editMessageText. 0-4096 characters. -
title
@NonNull String title
Title of the game
-
-
-
Class org.telegram.telegrambots.meta.api.objects.games.GameHighScore
class GameHighScore extends Object implements Serializable
-
-
Package org.telegram.telegrambots.meta.api.objects.inlinequery
-
Class org.telegram.telegrambots.meta.api.objects.inlinequery.ChosenInlineQuery
class ChosenInlineQuery extends Object implements Serializable-
Serialized Fields
-
from
@NonNull User from
-
inlineMessageId
String inlineMessageId
Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message. Will be also received in callback queries and can be used to edit the message. -
location
Location location
-
query
@NonNull String query
-
resultId
@NonNull String resultId
-
-
-
Class org.telegram.telegrambots.meta.api.objects.inlinequery.InlineQuery
class InlineQuery extends Object implements Serializable-
Serialized Fields
-
chatType
String chatType
Optional. Type of the chat, from which the inline query was sent. Can be either “sender” for a private chat with the inline query sender, “private”, “group”, “supergroup”, or “channel”. The chat type should be always known for requests sent from official clients and most third-party clients, unless the request was sent from a secret chat -
from
@NonNull User from
-
id
@NonNull String id
-
location
Location location
-
offset
@NonNull String offset
-
query
@NonNull String query
-
-
-
-
Package org.telegram.telegrambots.meta.api.objects.inlinequery.inputmessagecontent
-
Class org.telegram.telegrambots.meta.api.objects.inlinequery.inputmessagecontent.InputContactMessageContent
class InputContactMessageContent extends Object implements Serializable -
Class org.telegram.telegrambots.meta.api.objects.inlinequery.inputmessagecontent.InputInvoiceMessageContent
class InputInvoiceMessageContent extends Object implements Serializable-
Serialized Fields
-
currency
@NonNull String currency
Three-letter ISO 4217 currency code, see more on currencies -
description
@NonNull String description
Product description, 1-255 characters -
isFlexible
Boolean isFlexible
Optional. Pass True, if the final price depends on the shipping method -
maxTipAmount
Integer maxTipAmount
Optional. The maximum accepted amount for tips in the smallest units of the currency (integer, not float/double). For example, for a maximum tip of US$ 1.45 pass max_tip_amount = 145. Defaults to 0 -
needEmail
Boolean needEmail
Optional. Pass True, if you require the user's email address to complete the order -
needName
Boolean needName
Optional. Pass True, if you require the user's full name to complete the order -
needPhoneNumber
Boolean needPhoneNumber
Optional. Pass True, if you require the user's phone number to complete the order -
needShippingAddress
Boolean needShippingAddress
Optional. Pass True, if you require the user's shipping address to complete the order -
payload
@NonNull String payload
Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes. -
photoHeight
Integer photoHeight
Optional. Photo height -
photoSize
Integer photoSize
Optional. Photo size -
photoUrl
String photoUrl
Optional. URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for. -
photoWidth
Integer photoWidth
Optional. Photo width -
prices
@NonNull List<LabeledPrice> prices
Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.) -
providerData
String providerData
Optional. A JSON-serialized object for data about the invoice, which will be shared with the payment provider. A detailed description of the required fields should be provided by the payment provider. -
providerToken
@NonNull String providerToken
Payment provider token, obtained via Botfather -
sendEmailToProvider
Boolean sendEmailToProvider
Optional. Pass True, if user's email address should be sent to provider -
sendPhoneNumberToProvider
Boolean sendPhoneNumberToProvider
Optional. Pass True, if user's phone number should be sent to provider -
suggestedTipAmounts
List<Integer> suggestedTipAmounts
Optional. A JSON-serialized array of suggested amounts of tip in the smallest units of the currency (integer, not float/double). At most 4 suggested tip amounts can be specified. The suggested tip amounts must be positive, passed in a strictly increased order and must not exceed max_tip_amount. -
title
@NonNull String title
Product name, 1-32 characters
-
-
-
Class org.telegram.telegrambots.meta.api.objects.inlinequery.inputmessagecontent.InputLocationMessageContent
class InputLocationMessageContent extends Object implements Serializable-
Serialized Fields
-
heading
Integer heading
Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified. -
horizontalAccuracy
Double horizontalAccuracy
Optional. The radius of uncertainty for the location, measured in meters; 0-1500 -
latitude
@NonNull Double latitude
Latitude of the location in degrees -
livePeriod
Integer livePeriod
Optional. Period in seconds for which the location can be updated, should be between 60 and 86400. -
longitude
@NonNull Double longitude
Longitude of the location in degrees -
proximityAlertRadius
Integer proximityAlertRadius
Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.
-
-
-
Class org.telegram.telegrambots.meta.api.objects.inlinequery.inputmessagecontent.InputTextMessageContent
class InputTextMessageContent extends Object implements Serializable-
Serialized Fields
-
disableWebPagePreview
Boolean disableWebPagePreview
Optional. Disables link previews for links in the sent message -
entities
List<MessageEntity> entities
Optional. List of special entities that appear in message text, which can be specified instead of parse_mode -
messageText
@NonNull String messageText
Text of a message to be sent, 1-4096 characters -
parseMode
String parseMode
Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message.
-
-
-
Class org.telegram.telegrambots.meta.api.objects.inlinequery.inputmessagecontent.InputVenueMessageContent
class InputVenueMessageContent extends Object implements Serializable-
Serialized Fields
-
address
@NonNull String address
Address of the venue -
foursquareId
String foursquareId
Optional. Foursquare identifier of the venue, if known -
foursquareType
String foursquareType
Optional. Foursquare type of the venue, if known. -
googlePlaceId
String googlePlaceId
Optional. Google Places identifier of the venue -
googlePlaceType
String googlePlaceType
Optional. Google Places type of the venue. (See supported types.) -
latitude
@NonNull Float latitude
Latitude of the venue in degrees -
longitude
@NonNull Float longitude
Longitude of the venue in degrees -
title
@NonNull String title
Name of the venue
-
-
-
-
Package org.telegram.telegrambots.meta.api.objects.inlinequery.inputmessagecontent.serialization
-
Class org.telegram.telegrambots.meta.api.objects.inlinequery.inputmessagecontent.serialization.InputMessageContentDeserializer
class InputMessageContentDeserializer extends com.fasterxml.jackson.databind.deser.std.StdDeserializer<InputMessageContent> implements Serializable-
Serialized Fields
-
objectMapper
com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
-
-
Package org.telegram.telegrambots.meta.api.objects.inlinequery.result
-
Class org.telegram.telegrambots.meta.api.objects.inlinequery.result.InlineQueryResultArticle
class InlineQueryResultArticle extends Object implements Serializable-
Serialized Fields
-
description
String description
-
hideUrl
Boolean hideUrl
-
id
@NonNull String id
-
inputMessageContent
@NonNull InputMessageContent inputMessageContent
-
replyMarkup
InlineKeyboardMarkup replyMarkup
-
thumbHeight
Integer thumbHeight
-
thumbUrl
String thumbUrl
-
thumbWidth
Integer thumbWidth
-
title
@NonNull String title
-
type
String type
-
url
String url
-
-
-
Class org.telegram.telegrambots.meta.api.objects.inlinequery.result.InlineQueryResultAudio
class InlineQueryResultAudio extends Object implements Serializable-
Serialized Fields
-
audioDuration
Integer audioDuration
-
audioUrl
@NonNull String audioUrl
-
caption
String caption
-
captionEntities
List<MessageEntity> captionEntities
-
id
@NonNull String id
-
inputMessageContent
InputMessageContent inputMessageContent
-
parseMode
String parseMode
-
performer
String performer
-
replyMarkup
InlineKeyboardMarkup replyMarkup
-
title
String title
-
type
String type
-
-
-
Class org.telegram.telegrambots.meta.api.objects.inlinequery.result.InlineQueryResultContact
class InlineQueryResultContact extends Object implements Serializable-
Serialized Fields
-
firstName
@NonNull String firstName
-
id
@NonNull String id
-
inputMessageContent
InputMessageContent inputMessageContent
-
lastName
String lastName
-
phoneNumber
@NonNull String phoneNumber
-
replyMarkup
InlineKeyboardMarkup replyMarkup
-
thumbHeight
Integer thumbHeight
-
thumbUrl
String thumbUrl
-
thumbWidth
Integer thumbWidth
-
type
String type
-
vCard
String vCard
-
-
-
Class org.telegram.telegrambots.meta.api.objects.inlinequery.result.InlineQueryResultDocument
class InlineQueryResultDocument extends Object implements Serializable-
Serialized Fields
-
caption
String caption
-
captionEntities
List<MessageEntity> captionEntities
-
description
String description
-
documentUrl
@NonNull String documentUrl
-
id
@NonNull String id
-
inputMessageContent
InputMessageContent inputMessageContent
-
mimeType
@NonNull String mimeType
-
parseMode
String parseMode
-
replyMarkup
InlineKeyboardMarkup replyMarkup
-
thumbHeight
Integer thumbHeight
-
thumbUrl
String thumbUrl
-
thumbWidth
Integer thumbWidth
-
title
@NonNull String title
-
type
String type
-
-
-
Class org.telegram.telegrambots.meta.api.objects.inlinequery.result.InlineQueryResultGame
class InlineQueryResultGame extends Object implements Serializable-
Serialized Fields
-
gameShortName
@NonNull String gameShortName
-
id
@NonNull String id
-
replyMarkup
InlineKeyboardMarkup replyMarkup
-
type
String type
-
-
-
Class org.telegram.telegrambots.meta.api.objects.inlinequery.result.InlineQueryResultGif
class InlineQueryResultGif extends Object implements Serializable-
Serialized Fields
-
caption
String caption
-
captionEntities
List<MessageEntity> captionEntities
-
gifDuration
Integer gifDuration
-
gifHeight
Integer gifHeight
-
gifUrl
@NonNull String gifUrl
-
gifWidth
Integer gifWidth
-
id
@NonNull String id
-
inputMessageContent
InputMessageContent inputMessageContent
-
parseMode
String parseMode
-
replyMarkup
InlineKeyboardMarkup replyMarkup
-
thumbUrl
String thumbUrl
-
thumbUrlType
String thumbUrlType
-
title
String title
-
type
String type
-
-
-
Class org.telegram.telegrambots.meta.api.objects.inlinequery.result.InlineQueryResultLocation
class InlineQueryResultLocation extends Object implements Serializable-
Serialized Fields
-
heading
Integer heading
Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified. -
horizontalAccuracy
Double horizontalAccuracy
Optional. The radius of uncertainty for the location, measured in meters; 0-1500 -
id
@NonNull String id
-
inputMessageContent
InputMessageContent inputMessageContent
-
latitude
@NonNull Float latitude
-
livePeriod
Integer livePeriod
-
longitude
@NonNull Float longitude
-
proximityAlertRadius
Integer proximityAlertRadius
Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified. -
replyMarkup
InlineKeyboardMarkup replyMarkup
-
thumbHeight
Integer thumbHeight
-
thumbUrl
String thumbUrl
-
thumbWidth
Integer thumbWidth
-
title
@NonNull String title
-
type
String type
-
-
-
Class org.telegram.telegrambots.meta.api.objects.inlinequery.result.InlineQueryResultMpeg4Gif
class InlineQueryResultMpeg4Gif extends Object implements Serializable-
Serialized Fields
-
caption
String caption
-
captionEntities
List<MessageEntity> captionEntities
-
id
@NonNull String id
-
inputMessageContent
InputMessageContent inputMessageContent
-
mpeg4Duration
Integer mpeg4Duration
-
mpeg4Height
Integer mpeg4Height
-
mpeg4Url
@NonNull String mpeg4Url
-
mpeg4Width
Integer mpeg4Width
-
parseMode
String parseMode
-
replyMarkup
InlineKeyboardMarkup replyMarkup
-
thumbUrl
String thumbUrl
-
title
String title
-
type
String type
-
-
-
Class org.telegram.telegrambots.meta.api.objects.inlinequery.result.InlineQueryResultPhoto
class InlineQueryResultPhoto extends Object implements Serializable-
Serialized Fields
-
caption
String caption
-
captionEntities
List<MessageEntity> captionEntities
-
description
String description
-
id
@NonNull String id
-
inputMessageContent
InputMessageContent inputMessageContent
-
mimeType
String mimeType
-
parseMode
String parseMode
-
photoHeight
Integer photoHeight
-
photoUrl
@NonNull String photoUrl
-
photoWidth
Integer photoWidth
-
replyMarkup
InlineKeyboardMarkup replyMarkup
-
thumbUrl
String thumbUrl
-
title
String title
-
type
String type
-
-
-
Class org.telegram.telegrambots.meta.api.objects.inlinequery.result.InlineQueryResultVenue
class InlineQueryResultVenue extends Object implements Serializable-
Serialized Fields
-
address
@NonNull String address
-
foursquareId
String foursquareId
-
foursquareType
String foursquareType
-
googlePlaceId
String googlePlaceId
-
googlePlaceType
String googlePlaceType
-
id
@NonNull String id
-
inputMessageContent
InputMessageContent inputMessageContent
-
latitude
@NonNull Float latitude
-
longitude
@NonNull Float longitude
-
replyMarkup
InlineKeyboardMarkup replyMarkup
-
thumbHeight
Integer thumbHeight
-
thumbUrl
String thumbUrl
-
thumbWidth
Integer thumbWidth
-
title
@NonNull String title
-
type
String type
-
-
-
Class org.telegram.telegrambots.meta.api.objects.inlinequery.result.InlineQueryResultVideo
class InlineQueryResultVideo extends Object implements Serializable-
Serialized Fields
-
caption
String caption
-
captionEntities
List<MessageEntity> captionEntities
-
description
String description
-
id
@NonNull String id
-
inputMessageContent
InputMessageContent inputMessageContent
-
mimeType
@NonNull String mimeType
-
parseMode
String parseMode
-
replyMarkup
InlineKeyboardMarkup replyMarkup
-
thumbUrl
String thumbUrl
-
title
String title
-
type
String type
-
videoDuration
Integer videoDuration
-
videoHeight
Integer videoHeight
-
videoUrl
@NonNull String videoUrl
-
videoWidth
Integer videoWidth
-
-
-
Class org.telegram.telegrambots.meta.api.objects.inlinequery.result.InlineQueryResultVoice
class InlineQueryResultVoice extends Object implements Serializable-
Serialized Fields
-
caption
String caption
-
captionEntities
List<MessageEntity> captionEntities
-
id
@NonNull String id
-
inputMessageContent
InputMessageContent inputMessageContent
-
parseMode
String parseMode
-
replyMarkup
InlineKeyboardMarkup replyMarkup
-
title
@NonNull String title
-
type
String type
-
voiceDuration
Integer voiceDuration
-
voiceUrl
@NonNull String voiceUrl
-
-
-
-
Package org.telegram.telegrambots.meta.api.objects.inlinequery.result.cached
-
Class org.telegram.telegrambots.meta.api.objects.inlinequery.result.cached.InlineQueryResultCachedAudio
class InlineQueryResultCachedAudio extends Object implements Serializable-
Serialized Fields
-
audioFileId
@NonNull String audioFileId
-
caption
String caption
-
captionEntities
List<MessageEntity> captionEntities
-
id
@NonNull String id
-
inputMessageContent
InputMessageContent inputMessageContent
-
parseMode
String parseMode
-
replyMarkup
InlineKeyboardMarkup replyMarkup
-
type
String type
-
-
-
Class org.telegram.telegrambots.meta.api.objects.inlinequery.result.cached.InlineQueryResultCachedDocument
class InlineQueryResultCachedDocument extends Object implements Serializable-
Serialized Fields
-
caption
String caption
-
captionEntities
List<MessageEntity> captionEntities
-
description
String description
-
documentFileId
@NonNull String documentFileId
-
id
@NonNull String id
-
inputMessageContent
InputMessageContent inputMessageContent
-
parseMode
String parseMode
-
replyMarkup
InlineKeyboardMarkup replyMarkup
-
title
String title
-
type
String type
-
-
-
Class org.telegram.telegrambots.meta.api.objects.inlinequery.result.cached.InlineQueryResultCachedGif
class InlineQueryResultCachedGif extends Object implements Serializable-
Serialized Fields
-
caption
String caption
-
captionEntities
List<MessageEntity> captionEntities
-
gifFileId
@NonNull String gifFileId
-
id
@NonNull String id
-
inputMessageContent
InputMessageContent inputMessageContent
-
parseMode
String parseMode
-
replyMarkup
InlineKeyboardMarkup replyMarkup
-
thumbUrl
String thumbUrl
-
thumbUrlType
String thumbUrlType
-
title
String title
-
type
String type
-
-
-
Class org.telegram.telegrambots.meta.api.objects.inlinequery.result.cached.InlineQueryResultCachedMpeg4Gif
class InlineQueryResultCachedMpeg4Gif extends Object implements Serializable-
Serialized Fields
-
caption
String caption
-
captionEntities
List<MessageEntity> captionEntities
-
id
@NonNull String id
-
inputMessageContent
InputMessageContent inputMessageContent
-
mpeg4FileId
@NonNull String mpeg4FileId
-
parseMode
String parseMode
-
replyMarkup
InlineKeyboardMarkup replyMarkup
-
title
String title
-
type
String type
-
-
-
Class org.telegram.telegrambots.meta.api.objects.inlinequery.result.cached.InlineQueryResultCachedPhoto
class InlineQueryResultCachedPhoto extends Object implements Serializable-
Serialized Fields
-
caption
String caption
-
captionEntities
List<MessageEntity> captionEntities
-
description
String description
-
id
@NonNull String id
-
inputMessageContent
InputMessageContent inputMessageContent
-
parseMode
String parseMode
-
photoFileId
@NonNull String photoFileId
-
replyMarkup
InlineKeyboardMarkup replyMarkup
-
title
String title
-
type
String type
-
-
-
Class org.telegram.telegrambots.meta.api.objects.inlinequery.result.cached.InlineQueryResultCachedSticker
class InlineQueryResultCachedSticker extends Object implements Serializable-
Serialized Fields
-
id
@NonNull String id
-
inputMessageContent
InputMessageContent inputMessageContent
-
replyMarkup
InlineKeyboardMarkup replyMarkup
-
stickerFileId
@NonNull String stickerFileId
-
type
String type
-
-
-
Class org.telegram.telegrambots.meta.api.objects.inlinequery.result.cached.InlineQueryResultCachedVideo
class InlineQueryResultCachedVideo extends Object implements Serializable-
Serialized Fields
-
caption
String caption
-
captionEntities
List<MessageEntity> captionEntities
-
description
String description
-
id
@NonNull String id
-
inputMessageContent
InputMessageContent inputMessageContent
-
parseMode
String parseMode
-
replyMarkup
InlineKeyboardMarkup replyMarkup
-
title
String title
-
type
String type
-
videoFileId
@NonNull String videoFileId
-
-
-
Class org.telegram.telegrambots.meta.api.objects.inlinequery.result.cached.InlineQueryResultCachedVoice
class InlineQueryResultCachedVoice extends Object implements Serializable-
Serialized Fields
-
caption
String caption
-
captionEntities
List<MessageEntity> captionEntities
-
id
@NonNull String id
-
inputMessageContent
InputMessageContent inputMessageContent
-
parseMode
String parseMode
-
replyMarkup
InlineKeyboardMarkup replyMarkup
-
title
@NonNull String title
-
type
String type
-
voiceFileId
@NonNull String voiceFileId
-
-
-
-
Package org.telegram.telegrambots.meta.api.objects.inlinequery.result.serialization
-
Class org.telegram.telegrambots.meta.api.objects.inlinequery.result.serialization.InlineQueryResultDeserializer
class InlineQueryResultDeserializer extends com.fasterxml.jackson.databind.deser.std.StdDeserializer<InlineQueryResult> implements Serializable-
Serialized Fields
-
objectMapper
com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
-
-
Package org.telegram.telegrambots.meta.api.objects.media
-
Class org.telegram.telegrambots.meta.api.objects.media.InputMedia
class InputMedia extends Object implements Serializable-
Serialized Fields
-
caption
String caption
-
captionEntities
List<MessageEntity> captionEntities
-
isNewMedia
boolean isNewMedia
-
media
@NonNull String media
File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass "attach://" to upload a new one using multipart/form-data under name. -
mediaName
String mediaName
-
newMediaFile
File newMediaFile
-
newMediaStream
InputStream newMediaStream
-
parseMode
String parseMode
-
-
-
Class org.telegram.telegrambots.meta.api.objects.media.InputMediaAnimation
class InputMediaAnimation extends InputMedia implements Serializable-
Serialized Fields
-
duration
Integer duration
-
height
Integer height
-
thumb
InputFile thumb
Thumbnail of the file sent. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail’s width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can’t be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . -
width
Integer width
-
-
-
Class org.telegram.telegrambots.meta.api.objects.media.InputMediaAudio
class InputMediaAudio extends InputMedia implements Serializable-
Serialized Fields
-
duration
Integer duration
-
performer
String performer
-
thumb
InputFile thumb
Optional. Thumbnail of the file sent. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail’s width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can’t be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . -
title
String title
-
-
-
Class org.telegram.telegrambots.meta.api.objects.media.InputMediaDocument
class InputMediaDocument extends InputMedia implements Serializable-
Serialized Fields
-
disableContentTypeDetection
Boolean disableContentTypeDetection
Optional. Disables automatic server-side content type detection for files uploaded using multipart/form-data. Always true, if the document is sent as part of an album. -
thumb
InputFile thumb
Thumbnail of the file sent. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail’s width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can’t be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under .
-
-
-
Class org.telegram.telegrambots.meta.api.objects.media.InputMediaPhoto
class InputMediaPhoto extends InputMedia implements Serializable -
Class org.telegram.telegrambots.meta.api.objects.media.InputMediaVideo
class InputMediaVideo extends InputMedia implements Serializable-
Serialized Fields
-
duration
Integer duration
-
height
Integer height
-
supportsStreaming
Boolean supportsStreaming
-
thumb
InputFile thumb
Thumbnail of the file sent. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail’s width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can’t be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . -
width
Integer width
-
-
-
-
Package org.telegram.telegrambots.meta.api.objects.media.serialization
-
Class org.telegram.telegrambots.meta.api.objects.media.serialization.InputMediaDeserializer
class InputMediaDeserializer extends com.fasterxml.jackson.databind.deser.std.StdDeserializer<InputMedia> implements Serializable-
Serialized Fields
-
objectMapper
com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
-
-
Package org.telegram.telegrambots.meta.api.objects.menubutton
-
Package org.telegram.telegrambots.meta.api.objects.menubutton.serialization
-
Package org.telegram.telegrambots.meta.api.objects.passport
-
Class org.telegram.telegrambots.meta.api.objects.passport.EncryptedCredentials
class EncryptedCredentials extends Object implements Serializable -
Class org.telegram.telegrambots.meta.api.objects.passport.EncryptedPassportElement
class EncryptedPassportElement extends Object implements Serializable-
Serialized Fields
-
data
String data
Optional. Base64-encoded encrypted Telegram Passport data provided by the user, available for “personal_details”, “passport”, “driver_license”, “identity_card”, “identity_passport” and “address” types. Can be decrypted and verified using the accompanying EncryptedCredentials. -
email
String email
-
files
List<PassportFile> files
Optional. Array of files with encrypted documents, provided by the user, available for “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration” and “temporary_registration” types. Files can be decrypted and verified using the accompanying EncryptedCredentials. -
frontSide
PassportFile frontSide
Optional. File with encrypted document's front side, provided by the user. Available for “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be decrypted and verified using the accompanying EncryptedCredentials. -
hash
String hash
Base64-encoded element hash for using in PassportElementErrorUnspecified -
phoneNumber
String phoneNumber
-
reverseSide
PassportFile reverseSide
Optional. File with encrypted document's reverse side, provided by the user. Available for “driver_license” and “identity_card”. The file can be decrypted and verified using the accompanying EncryptedCredentials. -
selfie
PassportFile selfie
Optional. File with encrypted selfie of the user with a document, provided by the user, can be available for “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be decrypted and verified using the accompanying EncryptedCredentials. -
translations
ArrayList<PassportFile> translations
Optional. Array of encrypted files with translated versions of documents provided by the user. Available if requested for “passport”, “driver_license”, “identity_card”, “internal_passport”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration” and “temporary_registration” types. Files can be decrypted and verified using the accompanying EncryptedCredentials. -
type
String type
Data type. One of “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport”, “address”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”, “phone_number”, “email”.
-
-
-
Class org.telegram.telegrambots.meta.api.objects.passport.PassportData
class PassportData extends Object implements Serializable-
Serialized Fields
-
credentials
EncryptedCredentials credentials
-
data
List<EncryptedPassportElement> data
-
-
-
Class org.telegram.telegrambots.meta.api.objects.passport.PassportFile
class PassportFile extends Object implements Serializable
-
-
Package org.telegram.telegrambots.meta.api.objects.passport.dataerror
-
Class org.telegram.telegrambots.meta.api.objects.passport.dataerror.PassportElementErrorDataField
class PassportElementErrorDataField extends Object implements Serializable-
Serialized Fields
-
dataHash
@NonNull String dataHash
-
fieldName
@NonNull String fieldName
-
message
@NonNull String message
-
source
@NonNull String source
-
type
@NonNull String type
Type of the Telegram Passport data with the error, one of “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport”, “address”
-
-
-
Class org.telegram.telegrambots.meta.api.objects.passport.dataerror.PassportElementErrorFile
class PassportElementErrorFile extends Object implements Serializable -
Class org.telegram.telegrambots.meta.api.objects.passport.dataerror.PassportElementErrorFiles
class PassportElementErrorFiles extends Object implements Serializable-
Serialized Fields
-
-
Class org.telegram.telegrambots.meta.api.objects.passport.dataerror.PassportElementErrorFrontSide
class PassportElementErrorFrontSide extends Object implements Serializable -
Class org.telegram.telegrambots.meta.api.objects.passport.dataerror.PassportElementErrorReverseSide
class PassportElementErrorReverseSide extends Object implements Serializable -
Class org.telegram.telegrambots.meta.api.objects.passport.dataerror.PassportElementErrorSelfie
class PassportElementErrorSelfie extends Object implements Serializable -
Class org.telegram.telegrambots.meta.api.objects.passport.dataerror.PassportElementErrorTranslationFile
class PassportElementErrorTranslationFile extends Object implements Serializable-
Serialized Fields
-
fileHash
@NonNull String fileHash
-
message
@NonNull String message
-
source
String source
-
type
@NonNull String type
Type of element of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”
-
-
-
Class org.telegram.telegrambots.meta.api.objects.passport.dataerror.PassportElementErrorTranslationFiles
class PassportElementErrorTranslationFiles extends Object implements Serializable-
Serialized Fields
-
fileHashes
@NonNull List<String> fileHashes
-
message
@NonNull String message
-
source
String source
-
type
@NonNull String type
Type of element of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”
-
-
-
Class org.telegram.telegrambots.meta.api.objects.passport.dataerror.PassportElementErrorUnspecified
class PassportElementErrorUnspecified extends Object implements Serializable
-
-
Package org.telegram.telegrambots.meta.api.objects.passport.dataerror.serialization
-
Class org.telegram.telegrambots.meta.api.objects.passport.dataerror.serialization.PassportElementErrorDeserializer
class PassportElementErrorDeserializer extends com.fasterxml.jackson.databind.deser.std.StdDeserializer<PassportElementError> implements Serializable-
Serialized Fields
-
objectMapper
com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
-
-
Package org.telegram.telegrambots.meta.api.objects.payments
-
Class org.telegram.telegrambots.meta.api.objects.payments.Invoice
class Invoice extends Object implements Serializable-
Serialized Fields
-
currency
String currency
-
description
String description
-
photo
PhotoSize photo
-
startParameter
String startParameter
Unique bot deep-linking parameter that can be used to generate this invoice; may be empty -
title
String title
-
totalAmount
Integer totalAmount
Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145.
-
-
-
Class org.telegram.telegrambots.meta.api.objects.payments.LabeledPrice
class LabeledPrice extends Object implements Serializable -
Class org.telegram.telegrambots.meta.api.objects.payments.OrderInfo
class OrderInfo extends Object implements Serializable-
Serialized Fields
-
email
String email
-
name
String name
-
phoneNumber
String phoneNumber
-
shippingAddress
ShippingAddress shippingAddress
-
-
-
Class org.telegram.telegrambots.meta.api.objects.payments.PreCheckoutQuery
class PreCheckoutQuery extends Object implements Serializable-
Serialized Fields
-
currency
String currency
-
from
User from
-
id
String id
-
invoicePayload
String invoicePayload
-
orderInfo
OrderInfo orderInfo
-
shippingOptionId
String shippingOptionId
-
totalAmount
Integer totalAmount
Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145.
-
-
-
Class org.telegram.telegrambots.meta.api.objects.payments.ShippingAddress
class ShippingAddress extends Object implements Serializable -
Class org.telegram.telegrambots.meta.api.objects.payments.ShippingOption
class ShippingOption extends Object implements Serializable-
Serialized Fields
-
id
@NonNull String id
-
prices
@NonNull List<LabeledPrice> prices
-
title
@NonNull String title
-
-
-
Class org.telegram.telegrambots.meta.api.objects.payments.ShippingQuery
class ShippingQuery extends Object implements Serializable-
Serialized Fields
-
from
User from
-
id
String id
-
invoicePayload
String invoicePayload
-
shippingAddress
ShippingAddress shippingAddress
-
-
-
Class org.telegram.telegrambots.meta.api.objects.payments.SuccessfulPayment
class SuccessfulPayment extends Object implements Serializable-
Serialized Fields
-
currency
String currency
-
invoicePayload
String invoicePayload
-
orderInfo
OrderInfo orderInfo
-
providerPaymentChargeId
String providerPaymentChargeId
-
shippingOptionId
String shippingOptionId
-
telegramPaymentChargeId
String telegramPaymentChargeId
-
totalAmount
Integer totalAmount
Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145.
-
-
-
-
Package org.telegram.telegrambots.meta.api.objects.polls
-
Class org.telegram.telegrambots.meta.api.objects.polls.Poll
class Poll extends Object implements Serializable-
Serialized Fields
-
allowMultipleAnswers
Boolean allowMultipleAnswers
-
closeDate
Integer closeDate
-
correctOptionId
Integer correctOptionId
Optional. 0-based identifier of the correct answer option. -
explanation
String explanation
-
explanationEntities
List<MessageEntity> explanationEntities
-
id
String id
-
isAnonymous
Boolean isAnonymous
-
isClosed
Boolean isClosed
-
openPeriod
Integer openPeriod
-
options
List<PollOption> options
-
question
String question
-
totalVoterCount
Integer totalVoterCount
-
type
String type
-
-
-
Class org.telegram.telegrambots.meta.api.objects.polls.PollAnswer
class PollAnswer extends Object implements Serializable -
Class org.telegram.telegrambots.meta.api.objects.polls.PollOption
class PollOption extends Object implements Serializable
-
-
Package org.telegram.telegrambots.meta.api.objects.replykeyboard
-
Class org.telegram.telegrambots.meta.api.objects.replykeyboard.ForceReplyKeyboard
class ForceReplyKeyboard extends Object implements Serializable-
Serialized Fields
-
forceReply
@NonNull Boolean forceReply
Shows reply interface to the user, as if they manually selected the bot‘s message and tapped ’Reply' -
inputFieldPlaceholder
String inputFieldPlaceholder
Optional. The placeholder to be shown in the input field when the keyboard is active; 1-64 characters -
selective
Boolean selective
Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.
-
-
-
Class org.telegram.telegrambots.meta.api.objects.replykeyboard.InlineKeyboardMarkup
class InlineKeyboardMarkup extends Object implements Serializable-
Serialized Fields
-
keyboard
@NonNull List<List<InlineKeyboardButton>> keyboard
-
-
-
Class org.telegram.telegrambots.meta.api.objects.replykeyboard.ReplyKeyboardMarkup
class ReplyKeyboardMarkup extends Object implements Serializable-
Serialized Fields
-
inputFieldPlaceholder
String inputFieldPlaceholder
Optional. The placeholder to be shown in the input field when the keyboard is active; 1-64 characters -
keyboard
@NonNull List<KeyboardRow> keyboard
-
oneTimeKeyboard
Boolean oneTimeKeyboard
-
resizeKeyboard
Boolean resizeKeyboard
-
selective
Boolean selective
Optional. Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.
-
-
-
Class org.telegram.telegrambots.meta.api.objects.replykeyboard.ReplyKeyboardRemove
class ReplyKeyboardRemove extends Object implements Serializable-
Serialized Fields
-
removeKeyboard
@NonNull Boolean removeKeyboard
-
selective
Boolean selective
Optional. Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.
-
-
-
-
Package org.telegram.telegrambots.meta.api.objects.replykeyboard.buttons
-
Class org.telegram.telegrambots.meta.api.objects.replykeyboard.buttons.InlineKeyboardButton
class InlineKeyboardButton extends Object implements Serializable-
Serialized Fields
-
callbackData
String callbackData
-
callbackGame
CallbackGame callbackGame
Optional. Description of the game that will be launched when the user presses the button. -
loginUrl
LoginUrl loginUrl
Optional. An HTTPS URL used to automatically authorize the user. Can be used as a replacement for the Telegram Login Widget. -
pay
Boolean pay
Optional. Specify True, to send a Buy button. -
switchInlineQuery
String switchInlineQuery
Optional. If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bot‘s username and the specified inline query in the input field. Can be empty, in which case just the bot’s username will be inserted. -
switchInlineQueryCurrentChat
String switchInlineQueryCurrentChat
Optional. If set, pressing the button will insert the bot‘s username and the specified inline query in the current chat's input field. Can be empty, in which case only the bot’s username will be inserted. -
text
@NonNull String text
-
url
String url
Optional. HTTP or tg:// url to be opened when the button is pressed. Links tg://user?id=can be used to mention a user by their ID without using a username, if this is allowed by their privacy settings. -
webApp
WebAppInfo webApp
Optional. Description of the web app that will be launched when the user presses the button. The web app will be able to send an arbitrary message on behalf of the user using the method answerWebAppQuery. Available only in private chats between users and the bot.
-
-
-
Class org.telegram.telegrambots.meta.api.objects.replykeyboard.buttons.KeyboardButton
class KeyboardButton extends Object implements Serializable-
Serialized Fields
-
requestContact
Boolean requestContact
Optional. If True, the user's phone number will be sent as a contact when the button is pressed. Available in private chats only -
requestLocation
Boolean requestLocation
Optional. If True, the user's current location will be sent when the button is pressed. Available in private chats only -
requestPoll
KeyboardButtonPollType requestPoll
Optional. If specified, the user will be asked to create a poll and send it to the bot when the button is pressed. Available in private chats only -
text
@NonNull String text
Text of the button. If none of the optional fields are used, it will be sent to the bot as a message when the button is pressed -
webApp
WebAppInfo webApp
Optional. Description of the web app that will be launched when the user presses the button. The web app will be able to send a “web_app_data” service message. Available in private chats only.
-
-
-
Class org.telegram.telegrambots.meta.api.objects.replykeyboard.buttons.KeyboardButtonPollType
class KeyboardButtonPollType extends Object implements Serializable-
Serialized Fields
-
type
String type
Optional. If quiz is passed, the user will be allowed to create only polls in the quiz mode. If regular is passed, only regular polls will be allowed. Otherwise, the user will be allowed to create a poll of any type.
-
-
-
Class org.telegram.telegrambots.meta.api.objects.replykeyboard.buttons.KeyboardRow
-
-
Package org.telegram.telegrambots.meta.api.objects.replykeyboard.serialization
-
Class org.telegram.telegrambots.meta.api.objects.replykeyboard.serialization.KeyboardDeserializer
class KeyboardDeserializer extends com.fasterxml.jackson.databind.deser.std.StdDeserializer<ReplyKeyboard> implements Serializable-
Serialized Fields
-
objectMapper
com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
-
-
Package org.telegram.telegrambots.meta.api.objects.stickers
-
Class org.telegram.telegrambots.meta.api.objects.stickers.MaskPosition
class MaskPosition extends Object implements Serializable-
Serialized Fields
-
point
@NonNull String point
The part of the face relative to which the mask should be placed. One of “forehead”, “eyes”, “mouth”, or “chin”. -
scale
@NonNull Float scale
Mask scaling coefficient. For example, 2.0 means double size. -
xShift
@NonNull Float xShift
Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. For example, choosing -1.0 will place mask just to the left of the default mask position. -
yShift
@NonNull Float yShift
Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. For example, 1.0 will place the mask just below the default mask position.
-
-
-
Class org.telegram.telegrambots.meta.api.objects.stickers.Sticker
class Sticker extends Object implements Serializable-
Serialized Fields
-
customEmojiId
String customEmojiId
Optional. For custom emoji stickers, unique identifier of the custom emoji -
emoji
String emoji
Optional. Emoji associated with the sticker -
fileId
String fileId
Identifier for this file, which can be used to download or reuse the file -
fileSize
Integer fileSize
Optional. File size -
fileUniqueId
String fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file. -
height
Integer height
Sticker height -
isAnimated
Boolean isAnimated
True, if the sticker is animated -
isVideo
Boolean isVideo
True, if the sticker is a video sticker -
maskPosition
MaskPosition maskPosition
Optional. For mask stickers, the position where the mask should be placed -
premiumAnimation
File premiumAnimation
Optional. Premium animation for the sticker, if the sticker is premium -
setName
String setName
Optional. Name of the sticker set to which the sticker belongs -
thumb
PhotoSize thumb
Optional. Sticker thumbnail in .webp or .jpg format -
type
String type
Type of the sticker, currently one of “regular”, “mask”, “custom_emoji”. The type of the sticker is independent of its format, which is determined by the fields is_animated and is_video. -
width
Integer width
Sticker width
-
-
-
Class org.telegram.telegrambots.meta.api.objects.stickers.StickerSet
class StickerSet extends Object implements Serializable-
Serialized Fields
-
containsMasks
Boolean containsMasks
Deprecated.True, if the sticker set contains animated stickers -
isAnimated
Boolean isAnimated
List of all set stickers -
isVideo
Boolean isVideo
True, if the sticker set contains video stickers -
name
String name
Sticker set name -
stickers
List<Sticker> stickers
True, if the sticker set contains masks -
stickerType
String stickerType
Type of stickers in the set, currently one of “regular”, “mask”, “custom_emoji” -
thumb
PhotoSize thumb
Optional. Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format -
title
String title
Sticker set title
-
-
-
-
Package org.telegram.telegrambots.meta.api.objects.videochat
-
Class org.telegram.telegrambots.meta.api.objects.videochat.VideoChatEnded
class VideoChatEnded extends Object implements Serializable-
Serialized Fields
-
duration
Integer duration
Voice chat duration; in seconds
-
-
-
Class org.telegram.telegrambots.meta.api.objects.videochat.VideoChatParticipantsInvited
class VideoChatParticipantsInvited extends Object implements Serializable -
Class org.telegram.telegrambots.meta.api.objects.videochat.VideoChatScheduled
class VideoChatScheduled extends Object implements Serializable-
Serialized Fields
-
startDate
@NonNull Integer startDate
Point in time (Unix timestamp) when the voice chat is supposed to be started by a chat administrator
-
-
-
Class org.telegram.telegrambots.meta.api.objects.videochat.VideoChatStarted
class VideoChatStarted extends Object implements Serializable
-
-
Package org.telegram.telegrambots.meta.api.objects.webapp
-
Class org.telegram.telegrambots.meta.api.objects.webapp.SentWebAppMessage
class SentWebAppMessage extends Object implements Serializable-
Serialized Fields
-
inlineMessageId
@NonNull String inlineMessageId
-
-
-
Class org.telegram.telegrambots.meta.api.objects.webapp.WebAppData
class WebAppData extends Object implements Serializable -
Class org.telegram.telegrambots.meta.api.objects.webapp.WebAppInfo
class WebAppInfo extends Object implements Serializable-
Serialized Fields
-
url
@NonNull String url
-
-
-
-
Package org.telegram.telegrambots.meta.exceptions
-
Exception org.telegram.telegrambots.meta.exceptions.TelegramApiException
class TelegramApiException extends Exception implements Serializable -
Exception org.telegram.telegrambots.meta.exceptions.TelegramApiRequestException
class TelegramApiRequestException extends TelegramApiException implements Serializable-
Serialized Fields
-
apiResponse
String apiResponse
-
errorCode
Integer errorCode
-
parameters
ResponseParameters parameters
-
-
-
Exception org.telegram.telegrambots.meta.exceptions.TelegramApiValidationException
class TelegramApiValidationException extends TelegramApiException implements Serializable-
Serialized Fields
-
method
PartialBotApiMethod method
-
object
BotApiObject object
-
-
-
#getStickerType()
orStickerSet.isMask()