default Boolean |
BotAPI.addStickerToSet(Integer user_id,
String name,
File png_sticker,
File tgs_sticker,
String emojis) |
Use this method to add a new sticker to a set created by the bot.
|
Boolean |
BotAPI.addStickerToSet(Integer user_id,
String name,
Object png_sticker,
String emojis,
MaskPosition mask_position) |
Use this method to add a new sticker to a set created by the bot.
|
default Boolean |
BotAPI.addStickerToSet(Integer user_id,
String name,
String png_sticker,
String emojis) |
Use this method to add a new sticker to a set created by the bot.
|
Boolean |
TelegramBot.addStickerToSet(Integer user_id,
String name,
Object png_sticker,
String emojis,
MaskPosition mask_position) |
|
default Boolean |
BotAPI.answerCallbackQuery(String callback_query_id) |
Use this method to send answers to callback queries sent from inline keyboards.
|
Boolean |
BotAPI.answerCallbackQuery(String callback_query_id,
String text,
Boolean show_alert,
String url,
Integer cache_time) |
Use this method to send answers to callback queries sent from inline keyboards.
|
Boolean |
TelegramBot.answerCallbackQuery(String callback_query_id,
String text,
Boolean show_alert,
String url,
Integer cache_time) |
|
default Boolean |
BotAPI.answerInlineQuery(String inlineQueryId,
List<InlineQueryResult> results) |
Use this method to send answers to an inline query.
|
Boolean |
BotAPI.answerInlineQuery(String inlineQueryId,
List<InlineQueryResult> results,
Integer cache_time,
Boolean is_personal,
String next_offset,
String switch_pm_text,
String switch_pm_parameter) |
Use this method to send answers to an inline query.
|
Boolean |
TelegramBot.answerInlineQuery(String inlineQueryId,
List<InlineQueryResult> results,
Integer cache_time,
Boolean is_personal,
String next_offset,
String switch_pm_text,
String switch_pm_parameter) |
|
default Boolean |
BotAPI.answerPreCheckoutQuery(String pre_checkout_query_id,
Boolean ok) |
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.
|
Boolean |
BotAPI.answerPreCheckoutQuery(String pre_checkout_query_id,
Boolean ok,
String error_message) |
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.
|
Boolean |
TelegramBot.answerPreCheckoutQuery(String pre_checkout_query_id,
Boolean ok,
String error_message) |
|
default Boolean |
BotAPI.answerShippingQuery(String shipping_query_id,
Boolean ok) |
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.
|
Boolean |
BotAPI.answerShippingQuery(String shipping_query_id,
Boolean ok,
List<ShippingOption> shipping_options,
String error_message) |
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.
|
Boolean |
TelegramBot.answerShippingQuery(String shipping_query_id,
Boolean ok,
List<ShippingOption> shipping_options,
String error_message) |
|
default Boolean |
BotAPI.createNewStickerSet(Integer user_id,
String name,
String title,
File png_sticker,
File tgs_sticker,
String emojis) |
Use this method to create new sticker set owned by a user.
|
Boolean |
BotAPI.createNewStickerSet(Integer user_id,
String name,
String title,
Object png_sticker,
File tgs_sticker,
String emojis,
Boolean contains_masks,
MaskPosition mask_position) |
Use this method to create new sticker set owned by a user.
|
default Boolean |
BotAPI.createNewStickerSet(Integer user_id,
String name,
String title,
String png_sticker,
File tgs_sticker,
String emojis) |
Use this method to create new sticker set owned by a user.
|
Boolean |
TelegramBot.createNewStickerSet(Integer user_id,
String name,
String title,
Object png_sticker,
File tgs_sticker,
String emojis,
Boolean contains_masks,
MaskPosition mask_position) |
|
Boolean |
BotAPI.deleteChatPhoto(Object chat_id) |
Use this method to delete a chat photo.
|
Boolean |
TelegramBot.deleteChatPhoto(Object chat_id) |
|
Boolean |
BotAPI.deleteChatStickerSet(Object chat_id) |
Use this method to delete a group sticker set from a supergroup.
|
Boolean |
TelegramBot.deleteChatStickerSet(Object chat_id) |
|
Boolean |
BotAPI.deleteMessage(Object chat_id,
Integer message_id) |
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
|
Boolean |
TelegramBot.deleteMessage(Object chat_id,
Integer message_id) |
|
Boolean |
BotAPI.deleteStickerFromSet(String sticker) |
Use this method to delete a sticker from a set created by the bot.
|
Boolean |
TelegramBot.deleteStickerFromSet(String sticker) |
|
Boolean |
BotAPI.deleteWebhook() |
|
Boolean |
TelegramBot.deleteWebhook() |
|
Message |
BotAPI.editMessageCaption(Object chat_id,
Integer message_id,
String inline_message_id,
String caption,
ParseMode parseMode,
InlineKeyboardMarkup reply_markup) |
Use this method to edit captions of messages sent by the bot or via the bot (for inline bots).
|
Message |
TelegramBot.editMessageCaption(Object chat_id,
Integer message_id,
String inline_message_id,
String caption,
ParseMode parse_mode,
InlineKeyboardMarkup reply_markup) |
|
Object |
BotAPI.editMessageLiveLocation(Object chat_id,
Integer message_id,
String inline_message_id,
Float latitude,
Float longitude,
InlineKeyboardMarkup reply_markup) |
Use this method to edit live location messages sent by the bot or via the bot (for inline bots).
|
Object |
TelegramBot.editMessageLiveLocation(Object chat_id,
Integer message_id,
String inline_message_id,
Float latitude,
Float longitude,
InlineKeyboardMarkup reply_markup) |
|
Message |
BotAPI.editMessageMedia(Object chat_id,
Integer message_id,
String inline_message_id,
InputMedia media,
InlineKeyboardMarkup reply_markup) |
Use this method to edit audio, document, photo, or video messages.
|
Message |
TelegramBot.editMessageMedia(Object chat_id,
Integer message_id,
String inline_message_id,
InputMedia media,
InlineKeyboardMarkup reply_markup) |
|
Message |
BotAPI.editMessageReplyMarkup(Object chat_id,
Integer message_id,
String inline_message_id,
InlineKeyboardMarkup reply_markup) |
Use this method to edit only the reply markup of messages sent by the bot or via the bot (for inline bots).
|
Message |
TelegramBot.editMessageReplyMarkup(Object chat_id,
Integer message_id,
String inline_message_id,
InlineKeyboardMarkup reply_markup) |
|
Message |
BotAPI.editMessageText(Object chat_id,
Integer message_id,
String inline_message_id,
String text,
ParseMode parse_mode,
Boolean disable_web_page_preview,
InlineKeyboardMarkup reply_markup) |
Use this method to edit text and game messages sent by the bot or via the bot (for inline bots).
|
Message |
TelegramBot.editMessageText(Object chat_id,
Integer message_id,
String inline_message_id,
String text,
ParseMode parse_mode,
Boolean disable_web_page_preview,
InlineKeyboardMarkup reply_markup) |
|
String |
BotAPI.exportChatInviteLink(Object chat_id) |
Use this method to generate a new invite link for a chat; any previously generated link is revoked.
|
String |
TelegramBot.exportChatInviteLink(Object chat_id) |
|
Message |
BotAPI.forwardMessage(Object chat_id,
Integer from_chat_id,
Boolean disable_notification,
Integer message_id) |
Use this method to forward messages of any kind.
|
default Message |
BotAPI.forwardMessage(Object chat_id,
Integer from_chat_id,
Integer message_id) |
Use this method to forward messages of any kind.
|
Message |
TelegramBot.forwardMessage(Object chat_id,
Integer from_chat_id,
Boolean disable_notification,
Integer message_id) |
|
Chat |
BotAPI.getChat(Object chat_id) |
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.).
|
Chat |
TelegramBot.getChat(Object chat_id) |
|
List<ChatMember> |
BotAPI.getChatAdministrators(Object chat_id) |
|
List<ChatMember> |
TelegramBot.getChatAdministrators(Object chat_id) |
|
ChatMember |
BotAPI.getChatMember(Object chat_id,
Integer user_id) |
|
ChatMember |
TelegramBot.getChatMember(Object chat_id,
Integer user_id) |
|
Integer |
BotAPI.getChatMembersCount(Object chat_id) |
Use this method to get the number of members in a chat.
|
Integer |
TelegramBot.getChatMembersCount(Object chat_id) |
|
File |
BotAPI.getFile(String file_id) |
Use this method to get basic info about a file and prepare it for downloading.
|
File |
TelegramBot.getFile(String file_id) |
|
default List<GameHighScore> |
BotAPI.getGameHighScores(Integer user_id) |
Use this method to get data for high score tables.
|
List<GameHighScore> |
BotAPI.getGameHighScores(Integer user_id,
Object chat_id,
Integer message_id,
String inline_message_id) |
Use this method to get data for high score tables.
|
List<GameHighScore> |
TelegramBot.getGameHighScores(Integer user_id,
Object chat_id,
Integer message_id,
String inline_message_id) |
|
User |
BotAPI.getMe() |
A simple method for testing your bot's auth token.
|
User |
TelegramBot.getMe() |
|
List<BotCommand> |
BotAPI.getMyCommands() |
Use this method to get the current list of the bot's commands.
|
List<BotCommand> |
TelegramBot.getMyCommands() |
|
StickerSet |
BotAPI.getStickerSet(String name) |
Use this method to get a sticker set.
|
StickerSet |
TelegramBot.getStickerSet(String name) |
|
List<Update> |
BotAPI.getUpdates(Integer offset,
Integer limit,
Integer timeout,
List<String> allowed_updates) |
Use this method to receive incoming updates using long polling (wiki).
|
List<Update> |
TelegramBot.getUpdates(Integer offset,
Integer limit,
Integer timeout,
List<String> allowed_updates) |
|
default UserProfilePhotos |
BotAPI.getUserProfilePhotos(Integer user_id) |
Use this method to get a list of profile pictures for a user.
|
UserProfilePhotos |
BotAPI.getUserProfilePhotos(Integer user_id,
Integer offset,
Integer limit) |
Use this method to get a list of profile pictures for a user.
|
UserProfilePhotos |
TelegramBot.getUserProfilePhotos(Integer user_id,
Integer offset,
Integer limit) |
|
WebhookInfo |
BotAPI.getWebhookInfo() |
Use this method to get current webhook status.
|
WebhookInfo |
TelegramBot.getWebhookInfo() |
|
default Boolean |
BotAPI.kickChatMember(Object chat_id,
Integer user_id) |
Use this method to kick a user from a group or a supergroup.
|
Boolean |
BotAPI.kickChatMember(Object chat_id,
Integer user_id,
Integer until_date) |
Use this method to kick a user from a group or a supergroup.
|
Boolean |
TelegramBot.kickChatMember(Object chat_id,
Integer user_id,
Integer until_date) |
|
Boolean |
BotAPI.leaveChat(Object chat_id) |
Use this method for your bot to leave a group, supergroup or channel.
|
Boolean |
TelegramBot.leaveChat(Object chat_id) |
|
default Boolean |
BotAPI.pinChatMessage(Object chat_id,
Integer message_id) |
Use this method to pin a message in a group, a supergroup, or a channel.
|
Boolean |
BotAPI.pinChatMessage(Object chat_id,
Integer message_id,
Boolean disable_notification) |
Use this method to pin a message in a supergroup.
|
Boolean |
TelegramBot.pinChatMessage(Object chat_id,
Integer message_id,
Boolean disable_notification) |
|
default Boolean |
BotAPI.promoteChatMember(Object chat_id,
Integer user_id) |
Use this method to promote or demote a user in a supergroup or a channel.
|
Boolean |
BotAPI.promoteChatMember(Object chat_id,
Integer user_id,
Boolean can_change_info,
Boolean can_post_messages,
Boolean can_edit_messages,
Boolean can_delete_messages,
Boolean can_invite_users,
Boolean can_restrict_members,
Boolean can_pin_messages,
Boolean can_promote_members) |
Use this method to promote or demote a user in a supergroup or a channel.
|
Boolean |
TelegramBot.promoteChatMember(Object chat_id,
Integer user_id,
Boolean can_change_info,
Boolean can_post_messages,
Boolean can_edit_messages,
Boolean can_delete_messages,
Boolean can_invite_users,
Boolean can_restrict_members,
Boolean can_pin_messages,
Boolean can_promote_members) |
|
default Boolean |
BotAPI.restrictChatMember(Object chat_id,
Integer user_id,
ChatPermissions permissions) |
Use this method to restrict a user in a supergroup.The bot must be an administrator in the supergroup for this to work and must have the appropriate admin rights.
|
Boolean |
BotAPI.restrictChatMember(Object chat_id,
Integer user_id,
ChatPermissions permissions,
Integer until_date) |
* Use this method to restrict a user in a supergroup.
|
Boolean |
TelegramBot.restrictChatMember(Object chat_id,
Integer user_id,
ChatPermissions permissions,
Integer until_date) |
|
default Message |
BotAPI.sendAnimation(Object chat_id,
File animation) |
Use this method to send animation files (GIF or H.264/MPEG-4 AVC video without sound).
|
Message |
BotAPI.sendAnimation(Object chat_id,
Object animation,
Integer duration,
Integer width,
Integer height,
Object thumb,
String caption,
ParseMode parse_mode,
Boolean disable_notification,
Integer reply_to_message_id,
Object reply_markup) |
Use this method to send animation files (GIF or H.264/MPEG-4 AVC video without sound).
|
default Message |
BotAPI.sendAnimation(Object chat_id,
String animation) |
Use this method to send animation files (GIF or H.264/MPEG-4 AVC video without sound).
|
Message |
TelegramBot.sendAnimation(Object chat_id,
Object animation,
Integer duration,
Integer width,
Integer height,
Object thumb,
String caption,
ParseMode parse_mode,
Boolean disable_notification,
Integer reply_to_message_id,
Object reply_markup) |
|
default Message |
BotAPI.sendAudio(Object chat_id,
File audio) |
Use this method to send audio files, if you want Telegram clients to display them in the music player.
|
Message |
BotAPI.sendAudio(Object chat_id,
Object audio,
String caption,
Integer duration,
String performer,
String title,
Boolean disable_notification,
Integer reply_to_message_id,
Object reply_markup) |
Use this method to send audio files, if you want Telegram clients to display them in the music player.
|
default Message |
BotAPI.sendAudio(Object chat_id,
String audio) |
Use this method to send audio files, if you want Telegram clients to display them in the music player.
|
Message |
TelegramBot.sendAudio(Object chat_id,
Object audio,
String caption,
Integer duration,
String performer,
String title,
Boolean disable_notification,
Integer reply_to_message_id,
Object reply_markup) |
|
default Boolean |
BotAPI.sendChatAction(Object chat_id,
BotAPI.ChatAction action) |
Use this method when you need to tell the user that something is happening on the bot's side.
|
Boolean |
BotAPI.sendChatAction(Object chat_id,
String action) |
Use this method when you need to tell the user that something is happening on the bot's side.
|
Boolean |
TelegramBot.sendChatAction(Object chat_id,
String action) |
|
default Message |
BotAPI.sendContact(Object chat_id,
String phone_number,
String first_name) |
Use this method to send phone contacts.
|
Message |
BotAPI.sendContact(Object chat_id,
String phone_number,
String first_name,
String last_name,
String vcard,
Boolean disable_notification,
Integer reply_to_message_id,
Object reply_markup) |
Use this method to send phone contacts.
|
Message |
TelegramBot.sendContact(Object chat_id,
String phone_number,
String first_name,
String last_name,
String vcard,
Boolean disable_notification,
Integer reply_to_message_id,
Object reply_markup) |
|
Message |
BotAPI.sendDice(Object chat_id,
Boolean disable_notification,
Integer reply_to_message_id,
Object reply_markup) |
Use this method to send a dice, which will have a random value from 1 to 6.
|
Message |
TelegramBot.sendDice(Object chat_id,
Boolean disable_notification,
Integer reply_to_message_id,
Object reply_markup) |
|
default Message |
BotAPI.sendDocument(Object chat_id,
File document) |
Use this method to send general files.
|
Message |
BotAPI.sendDocument(Object chat_id,
Object document,
Boolean disable_notification,
Integer reply_to_message_id,
Object reply_markup) |
Use this method to send general files.
|
default Message |
BotAPI.sendDocument(Object chat_id,
String document) |
Use this method to send general files.
|
Message |
TelegramBot.sendDocument(Object chat_id,
Object document,
Boolean disable_notification,
Integer reply_to_message_id,
Object reply_markup) |
|
default Message |
BotAPI.sendGame(Object chat_id,
String game_short_name) |
Use this method to send a game.
|
Message |
BotAPI.sendGame(Object chat_id,
String game_short_name,
Boolean disable_notification,
Integer reply_to_message_id,
InlineKeyboardMarkup reply_markup) |
Use this method to send a game.
|
Message |
TelegramBot.sendGame(Object chat_id,
String game_short_name,
Boolean disable_notification,
Integer reply_to_message_id,
InlineKeyboardMarkup reply_markup) |
|
default Message |
BotAPI.sendInvoice(Integer chat_id,
String title,
String description,
String payload,
String provider_token,
String start_parameter,
String currency,
List<LabeledPrice> prices) |
Use this method to send invoices.
|
Message |
BotAPI.sendInvoice(Integer chat_id,
String title,
String description,
String payload,
String provider_token,
String start_parameter,
String currency,
List<LabeledPrice> prices,
String provider_data,
String photo_url,
Integer photo_size,
Integer photo_width,
Integer photo_height,
Boolean need_name,
Boolean need_phone_number,
Boolean need_email,
Boolean need_shipping_address,
Boolean send_phone_number_to_provider,
Boolean send_email_to_provider,
Boolean is_flexible,
Boolean disable_notification,
Integer reply_to_message_id,
InlineKeyboardMarkup reply_markup) |
Use this method to send invoices.
|
Message |
TelegramBot.sendInvoice(Integer chat_id,
String title,
String description,
String payload,
String provider_token,
String start_parameter,
String currency,
List<LabeledPrice> prices,
String provider_data,
String photo_url,
Integer photo_size,
Integer photo_width,
Integer photo_height,
Boolean need_name,
Boolean need_phone_number,
Boolean need_email,
Boolean need_shipping_address,
Boolean send_phone_number_to_provider,
Boolean send_email_to_provider,
Boolean is_flexible,
Boolean disable_notification,
Integer reply_to_message_id,
InlineKeyboardMarkup reply_markup) |
|
default Message |
BotAPI.sendLocation(Object chat_id,
Float latitude,
Float longitude) |
Use this method to send point on the map.
|
Message |
BotAPI.sendLocation(Object chat_id,
Float latitude,
Float longitude,
Integer live_period,
Boolean disable_notification,
Integer reply_to_message_id,
Object reply_markup) |
Use this method to send point on the map.
|
Message |
TelegramBot.sendLocation(Object chat_id,
Float latitude,
Float longitude,
Integer live_period,
Boolean disable_notification,
Integer reply_to_message_id,
Object reply_markup) |
|
default Message |
BotAPI.sendMediaGroup(Object chat_id,
List<InputMedia> media) |
Use this method to send a group of photos or videos as an album.
|
Message |
BotAPI.sendMediaGroup(Object chat_id,
List<InputMedia> media,
Boolean disable_notification,
Integer reply_to_message_id) |
Use this method to send a group of photos or videos as an album.
|
Message |
TelegramBot.sendMediaGroup(Object chat_id,
List<InputMedia> media,
Boolean disable_notification,
Integer reply_to_message_id) |
|
default Message |
BotAPI.sendMessage(Object chat_id,
String text) |
Use this method to send text messages.
|
Message |
BotAPI.sendMessage(Object chat_id,
String text,
ParseMode parse_mode,
Boolean disable_notification,
Boolean disable_web_page_preview,
Integer reply_to_message_id,
Object reply_markup) |
Use this method to send text messages.
|
Message |
TelegramBot.sendMessage(Object chat_id,
String text,
ParseMode parse_mode,
Boolean disable_web_page_preview,
Boolean disable_notification,
Integer reply_to_message_id,
Object reply_markup) |
|
default Message |
BotAPI.sendPhoto(Object chat_id,
File photo) |
Use this method to send photos.
|
Message |
BotAPI.sendPhoto(Object chat_id,
Object photo,
String caption,
Boolean disable_notification,
Integer reply_to_message_id,
Object reply_markup) |
Use this method to send photos.
|
default Message |
BotAPI.sendPhoto(Object chat_id,
String photo) |
Use this method to send photos.
|
Message |
TelegramBot.sendPhoto(Object chat_id,
Object photo,
String caption,
Boolean disable_notification,
Integer reply_to_message_id,
Object reply_markup) |
|
default Message |
BotAPI.sendPoll(Object chat_id,
String question,
List<String> options) |
Use this method to send a native poll.
|
Message |
BotAPI.sendPoll(Object chat_id,
String question,
List<String> options,
Boolean is_anonymous,
String type,
Boolean allows_multiple_answers,
Integer correct_option_id,
Boolean is_closed,
Boolean disable_notification,
Integer reply_to_message_id,
Object reply_markup) |
Use this method to send a native poll.
|
Message |
TelegramBot.sendPoll(Object chat_id,
String question,
List<String> options,
Boolean is_anonymous,
String type,
Boolean allows_multiple_answers,
Integer correct_option_id,
Boolean is_closed,
Boolean disable_notification,
Integer reply_to_message_id,
Object reply_markup) |
|
default Message |
BotAPI.sendSticker(Object chat_id,
File sticker) |
Use this method to send static .WEBP or animated .TGS stickers.
|
Message |
BotAPI.sendSticker(Object chat_id,
Object sticker,
Boolean disable_notification,
Integer reply_to_message_id,
Object reply_markup) |
Use this method to send static .WEBP or animated .TGS stickers.
|
default Message |
BotAPI.sendSticker(Object chat_id,
String sticker) |
Use this method to send static .WEBP or animated .TGS stickers.
|
Message |
TelegramBot.sendSticker(Object chat_id,
Object sticker,
Boolean disable_notification,
Integer reply_to_message_id,
Object reply_markup) |
|
default Message |
BotAPI.sendVenue(Object chat_id,
Float latitude,
Float longitude,
String title,
String address) |
Use this method to send information about a venue.
|
Message |
BotAPI.sendVenue(Object chat_id,
Float latitude,
Float longitude,
String title,
String address,
String foursquare_id,
String foursquare_type,
Boolean disable_notification,
Integer reply_to_message_id,
Object reply_markup) |
Use this method to send information about a venue.
|
Message |
TelegramBot.sendVenue(Object chat_id,
Float latitude,
Float longitude,
String title,
String address,
String foursquare_id,
String foursquare_type,
Boolean disable_notification,
Integer reply_to_message_id,
Object reply_markup) |
|
default Message |
BotAPI.sendVideo(Object chat_id,
File video) |
Use this method to send video files, Telegram clients support mp4 videos (other formats may be sent as Document ).
|
Message |
BotAPI.sendVideo(Object chat_id,
Object video,
Integer duration,
Integer width,
Integer height,
String caption,
ParseMode parse_mode,
Boolean supports_streaming,
Boolean disable_notification,
Integer reply_to_message_id,
Object reply_markup) |
Use this method to send video files, Telegram clients support mp4 videos (other formats may be sent as Document ).
|
default Message |
BotAPI.sendVideo(Object chat_id,
String video) |
Use this method to send video files, Telegram clients support mp4 videos (other formats may be sent as Document ).
|
Message |
TelegramBot.sendVideo(Object chat_id,
Object video,
Integer duration,
Integer width,
Integer height,
String caption,
ParseMode parse_mode,
Boolean supports_streaming,
Boolean disable_notification,
Integer reply_to_message_id,
Object reply_markup) |
|
default Message |
BotAPI.sendVideoNote(Object chat_id,
File video_note) |
As of v.4.0, Telegram clients support rounded square mp4 videos of up to 1 minute long.
|
Message |
BotAPI.sendVideoNote(Object chat_id,
Object video_note,
Integer duration,
Integer length,
Boolean disable_notification,
Integer reply_to_message_id,
Object reply_markup) |
As of v.4.0, Telegram clients support rounded square mp4 videos of up to 1 minute long.
|
default Message |
BotAPI.sendVideoNote(Object chat_id,
String video_note) |
As of v.4.0, Telegram clients support rounded square mp4 videos of up to 1 minute long.
|
Message |
TelegramBot.sendVideoNote(Object chat_id,
Object video_note,
Integer duration,
Integer length,
Boolean disable_notification,
Integer reply_to_message_id,
Object reply_markup) |
|
default Message |
BotAPI.sendVoice(Object chat_id,
File voice) |
Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message.
|
Message |
BotAPI.sendVoice(Object chat_id,
Object voice,
String caption,
Integer duration,
Boolean disable_notification,
Integer reply_to_message_id,
Object reply_markup) |
Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message.
|
default Message |
BotAPI.sendVoice(Object chat_id,
String voice) |
Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message.
|
Message |
TelegramBot.sendVoice(Object chat_id,
Object voice,
String caption,
Integer duration,
Boolean disable_notification,
Integer reply_to_message_id,
Object reply_markup) |
|
Boolean |
BotAPI.setChatAdministratorCustomTitle(Object chat_id,
Integer user_id,
String custom_title) |
Use this method to set a custom title for an administrator in a supergroup promoted by the bot
|
Boolean |
TelegramBot.setChatAdministratorCustomTitle(Object chat_id,
Integer user_id,
String custom_title) |
|
default Boolean |
BotAPI.setChatDescription(Object chat_id) |
Use this method to change the description of a supergroup or a channel.
|
Boolean |
BotAPI.setChatDescription(Object chat_id,
String description) |
Use this method to change the description of a supergroup or a channel.
|
Boolean |
TelegramBot.setChatDescription(Object chat_id,
String description) |
|
Boolean |
BotAPI.setChatPermissions(Object chat_id,
ChatPermissions permissions) |
Use this method to set default chat permissions for all members.
|
Boolean |
TelegramBot.setChatPermissions(Object chat_id,
ChatPermissions permissions) |
|
Boolean |
BotAPI.setChatPhoto(Object chat_id,
File photo) |
Use this method to set a new profile photo for the chat.
|
Boolean |
TelegramBot.setChatPhoto(Object chat_id,
File photo) |
|
Boolean |
BotAPI.setChatStickerSet(Object chat_id,
String sticker_set_name) |
Use this method to set a new group sticker set for a supergroup.
|
Boolean |
TelegramBot.setChatStickerSet(Object chat_id,
String sticker_set_name) |
|
Boolean |
BotAPI.setChatTitle(Object chat_id,
String title) |
Use this method to change the title of a chat.
|
Boolean |
TelegramBot.setChatTitle(Object chat_id,
String title) |
|
default Object |
BotAPI.setGameScore(Integer user_id,
Integer score) |
Use this method to set the score of the specified user in a game.
|
Object |
BotAPI.setGameScore(Integer user_id,
Integer score,
Boolean force,
Boolean disable_edit_message,
Object chat_id,
Integer message_id,
String inline_message_id) |
Use this method to set the score of the specified user in a game.
|
Message |
TelegramBot.setGameScore(Integer user_id,
Integer score,
Boolean force,
Boolean disable_edit_message,
Object chat_id,
Integer message_id,
String inline_message_id) |
|
Boolean |
BotAPI.setMyCommands(List<BotCommand> commands) |
Use this method to change the list of the bot's commands.
|
Boolean |
TelegramBot.setMyCommands(List<BotCommand> commands) |
|
Boolean |
BotAPI.setStickerPositionInSet(String sticker,
Integer position) |
Use this method to move a sticker in a set created by the bot to a specific position .
|
Boolean |
TelegramBot.setStickerPositionInSet(String sticker,
Integer position) |
|
Boolean |
BotAPI.setStickerSetThumb(String name,
Integer user_id,
File thumb) |
Use this method to set the thumbnail of a sticker set.
|
Boolean |
BotAPI.setStickerSetThumb(String name,
Integer user_id,
String thumb) |
Use this method to set the thumbnail of a sticker set.
|
Boolean |
TelegramBot.setStickerSetThumb(String name,
Integer user_id,
File thumb) |
|
Boolean |
TelegramBot.setStickerSetThumb(String name,
Integer user_id,
String thumb) |
|
Boolean |
BotAPI.setWebhook(String url,
File certificate,
Integer max_connections,
List<String> allowed_updates) |
Use this method to specify a url and receive incoming updates via an outgoing webhook.
|
Boolean |
TelegramBot.setWebhook(String url,
File certificate,
Integer max_connections,
List<String> allowed_updates) |
|
Object |
BotAPI.stopMessageLiveLocation(Object chat_id,
Integer message_id,
String inline_message_id,
InlineKeyboardMarkup reply_markup) |
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.
|
Object |
TelegramBot.stopMessageLiveLocation(Object chat_id,
Integer message_id,
String inline_message_id,
InlineKeyboardMarkup reply_markup) |
|
default Poll |
BotAPI.stopPoll(Object chat_id,
Integer message_id) |
Use this method to stop a poll which was sent by the bot.
|
Poll |
BotAPI.stopPoll(Object chat_id,
Integer message_id,
InlineKeyboardMarkup reply_markup) |
Use this method to stop a poll which was sent by the bot.
|
Poll |
TelegramBot.stopPoll(Object chat_id,
Integer message_id,
InlineKeyboardMarkup reply_markup) |
|
Boolean |
BotAPI.unbanChatMember(Object chat_id,
Integer user_id) |
Use this method to unban a previously kicked user in a supergroup or channel.
|
Boolean |
TelegramBot.unbanChatMember(Object chat_id,
Integer user_id) |
|
Boolean |
BotAPI.unpinChatMessage(Object chat_id) |
Use this method to unpin a message in a group, a supergroup, or a channel.
|
Boolean |
TelegramBot.unpinChatMessage(Object chat_id) |
|
File |
BotAPI.uploadStickerFile(Integer user_id,
File png_sticker) |
Use this method to upload a .png file with a sticker for later use in createNewStickerSet and addStickerToSet methods (can be used multiple times).
|
File |
TelegramBot.uploadStickerFile(Integer user_id,
File png_sticker) |
|