| Interface | Description |
|---|---|
| TelegramMethod<T extends java.io.Serializable> |
A method of Telegram Bots API.
|
| Class | Description |
|---|---|
| AddStickerToSet |
Use this method to add a new sticker to a set created by the bot.
|
| AnswerCallbackQuery |
Use this method to send answers to callback queries sent from inline keyboards.
|
| AnswerInlineQuery |
Use this method to send answers to an inline query.
|
| AnswerPreCheckoutQuery |
Once the user has confirmed their payment and shipping details,
the Bot API sends the final confirmation in the form of an Update
with the field pre_checkout_query.
|
| AnswerShippingQuery |
If you sent an invoice requesting a shipping address and the parameter
is_flexible was specified, the Bot API will send an Update with a
shipping_query field to the bot.
|
| CreateNewStickerSet |
Use this method to create new sticker set owned by a user.
|
| DeleteChatPhoto |
Use this method to delete a chat photo.
|
| DeleteChatStickerSet |
Use this method to delete a group sticker set from a supergroup.
|
| DeleteMessage |
Use this method to delete a message, including service messages, with the following limitations:
A message can only be deleted if it was sent less than 48 hours ago.
|
| DeleteStickerFromSet |
Use this method to delete a sticker from a set created by the bot.
|
| DeleteWebhook |
Use this method to remove webhook integration if you decide to
switch back to getUpdates.
|
| EditMessageCaption |
Use this method to edit captions of messages sent by the bot or via the bot (for inline bots).
|
| EditMessageLiveLocation |
Use this method to edit live location messages sent by the bot or via the bot (for inline bots).
|
| EditMessageMedia |
Use this method to edit captions of messages sent by the bot or via the bot (for inline bots).
|
| EditMessageReplyMarkup |
Use this method to edit only the reply markup of
messages sent by the bot or via the bot (for inline bots).
|
| EditMessageText |
Use this method to edit text and game messages sent by the bot or via the bot (for inline bots).
|
| ExportChatInviteLink |
Use this method to export an invite link to a supergroup or a channel.
|
| ForwardMessage |
Use this method to forward messages of any kind.
|
| GetChat |
Use this method to get up to date information about the chat
(current name of the user for one-on-one conversations,
current username of a user, group or channel, etc.).
|
| GetChatAdministrators |
Use this method to get a list of administrators in a chat.
|
| GetChatMember |
Use this method to get information about a member of a chat.
|
| GetChatMembersCount |
Use this method to get the number of members in a chat.
|
| GetFile |
Use this method to get basic info about a file and prepare it for downloading.
|
| GetGameHighScores |
Use this method to get data for high score tables.
|
| GetMe |
Returns basic information about the bot in form of a User object.
|
| GetStickerSet |
Use this method to get a sticker set.
|
| GetUpdates |
Use this method to receive incoming updates using long polling.
|
| GetUserProfilePhotos |
Use this method to get a list of profile pictures for a user.
|
| GetWebhookInfo |
Use this method to get current webhook status.
|
| KickChatMember |
Use this method to kick a user from a group, a supergroup or a channel.
|
| LeaveChat |
Use this method for your bot to leave a group, supergroup or channel.
|
| PinChatMessage |
Use this method to pin a message in a supergroup.
|
| PromoteChatMember |
Use this method to promote or demote a user in a supergroup or a channel.
|
| RestrictChatMember |
Use this method to restrict a user in a supergroup.
|
| SendAnimation |
Use this method to send animation files (GIF or H.264/MPEG-4 AVC video without sound).
|
| SendAudio |
Use this method to send audio files, if you want Telegram clients to
display them in the music player.
|
| SendChatAction |
Use this method when you need to tell the user that something is happening on the bot's side.
|
| SendContact |
Use this method to send phone contacts.
|
| SendDocument |
Use this method to send general files.
|
| SendGame |
Use this method to send a game.
|
| SendInvoice |
Use this method to send invoices.
|
| SendLocation |
Use this method to send point on the map.
|
| SendMediaGroup |
Use this method to send a group of photos or videos as an album.
|
| SendMessage |
Use this method to send text messages.
|
| SendPhoto | |
| SendSticker |
Use this method to send .webp stickers.
|
| SendVenue |
Use this method to send information about a venue.
|
| SendVideo |
Use this method to send video files, Telegram clients support mp4
videos (other formats may be sent as Document).
|
| SendVideoNote |
As of v.4.0, Telegram clients support rounded square mp4 videos of up to 1 minute long.
|
| SendVoice |
Use this method to send audio files, if you want Telegram
clients to display the file as a playable voice message.
|
| SetChatDescription |
Use this method to change the description of a supergroup or a channel.
|
| SetChatPhoto |
Use this method to set a new profile photo for the chat.
|
| SetChatStickerSet |
Use this method to set a new group sticker set for a supergroup.
|
| SetChatTitle |
Use this method to set a new profile photo for the chat.
|
| SetGameScore |
Use this method to set the score of the specified user in a game.
|
| SetStickerPositionInSet |
Use this method to move a sticker in a set created by the bot to a specific position.
|
| SetWebhook |
Use this method to specify a url and receive incoming updates via an outgoing webhook.
|
| StopMessageLiveLocation |
Use this method to stop updating a live location message sent by the bot or
via the bot (for inline bots) before live period expires.
|
| UnbanChatMember |
Use this method to unban a previously kicked user in a supergroup or channel.
|
| UnpinChatMessage |
Use this method to unpin a message in a supergroup chat.
|
| UploadStickerFile |
Use this method to upload a .png file with a sticker for later
use in createNewStickerSet and addStickerToSet methods (can be used multiple times).
|