Methods

Account

getBusinessConnection

Get a business connection. Bot-only.

getMe

Get information on the currently authorized user.

hideUsername

Hide a username from the current account, a bot account, a supergroup, or a channel’s profile. User-only.

hideUsernames

Hide all usernames from the a supergroup or a channel’s profile. User-only.

reorderUsernames

Reorder the usernames of the current account, a bot account, a supergroup, or a channel’s profile. User-only.

setEmojiStatus

Set the current account’s emoji status. User-only.

setOnline

Set the current account’s online status. User-only.

setUserEmojiStatus

Set the emoji status of a bot’s user. Bot-only.

showUsername

Show a username in the current account, a bot account, a supergroup, or a channel’s profile. User-only.

Bots

getMyCommands

Get the bot’s commands in the given scope and/or language. Bot-only.

getMyDescription

Get the bot’s description in the given language. Bot-only.

getMyName

Get the bot’s name in the given language. Bot-only.

getMyShortDescription

Get the bot’s short description in the given language. Bot-only.

setMyCommands

Set the bot’s commands in the given scope and/or language. Bot-only.

setMyDescription

Set the bot’s description in the given language. Bot-only.

setMyName

Set the bot’s name in the given language. Bot-only.

setMyShortDescription

Set the bot’s short description in the given language. Bot-only.

Callback Queries

answerCallbackQuery

Answer a callback query. Bot-only.

sendCallbackQuery

Send a callback query. User-only.

Chats

addChatMember

Add a single user to a chat.

addChatMembers

Add multiple users at once to a channel or a supergroup.

approveJoinRequest

Approve a join request.

approveJoinRequests

Approve all join requests. User-only.

banChatMember

Ban a member from a chat.

closeChat

Close a chat previously opened by openChat. User-only.

createChannel

Create a channel. User-only.

createGroup

Create a group. User-only.

createInviteLink

Create an invite link.

createSupergroup

Create a supergroup. User-only.

declineJoinRequest

Decline a join request.

declineJoinRequests

Decline all join requests. User-only.

deleteChatPhoto

Delete a chat’s photo.

deleteChatStickerSet

Delete a chat’s sticker set.

disableJoinRequests

Disable join requests in a chat. User-only.

enableJoinRequests

Enable join requests in a chat. User-only.

getChat

Get a chat.

getChatAdministrators

Get the administrators of a chat.

getChatMember

Get information on a user’s chat membership.

getChatMembers

Get the members of a chat.

getChats

Get chats from a chat list. User-only.

getCreatedInviteLinks

Get the invite links created for a chat. User-only.

getHistory

Get chat history. User-only.

getInactiveChats

Get inactive chats. User-only.

joinChat

Join a chat. User-only.

kickChatMember

Kick a member from a chat. Same as a banChatMember call followed by unbanChatMember.

leaveChat

Leave a chat.

openChat

Open a chat. User-only.

setAvailableReactions

Set a chat’s available reactions. User-only.

setBoostsRequiredToCircumventRestrictions

Set the number of boosts required to circument a chat’s default restrictions. User-only.

setChatMemberRights

Set the rights of a chat member.

setChatPhoto

Set a chat’s photo.

setChatStickerSet

Set a chat’s sticker set.

setMessageTtl

Set the time to live of the messages of a chat. User-only.

unbanChatMember

Unban a member from a chat.

Files

download

Download a file.

getCustomEmojiStickers

Get custom emoji documents for download.

Inline Queries

answerInlineQuery

Answer an inline query. Bot-only.

sendInlineQuery

Send an inline query. User-only.

Messages

deleteChatMemberMessages

Delete all messages sent by a specific member of a chat. User-only.

deleteMessage

Delete a single message.

deleteMessages

Delete multiple messages.

deleteScheduledMessage

Delete a scheduled message.

deleteScheduledMessages

Delete multiple scheduled messages.

editInlineMessageLiveLocation

Edit an inline message’s live location. Bot-only.

editInlineMessageMedia

Edit an inline message’s media.

editInlineMessageReplyMarkup

Edit an inline message’s reply markup. Bot-only.

editInlineMessageText

Edit an inline message’s text. Bot-only.

editMessageLiveLocation

Edit a message’s live location.

editMessageMedia

Edit a message’s media.

editMessageReplyMarkup

Edit a message’s reply markup.

editMessageText

Edit a message’s text.

forwardMessage

Forward a single message.

forwardMessages

Forward multiple messages.

getMessage

Retrieve a single message.

getMessages

Retrieve multiple messages.

pinMessage

Pin a message in a chat.

readMessages

Mark messages as read. User-only.

searchMessages

Search the messages of a chat. User-only.

sendAnimation

Send an animation.

sendAudio

Send an audio file.

sendChatAction

Send a chat action.

sendContact

Send a contact.

sendDice

Send a dice.

sendDocument

Send a document.

sendInvoice

Send an invoice. Bot-only.

sendLocation

Send a location.

sendMediaGroup

Send a media group.

sendMessage

Send a text message.

sendPhoto

Send a photo.

sendPoll

Send a poll.

sendScheduledMessage

Send a scheduled message before its schedule.

sendScheduledMessages

Send multiple scheduled messages before their schedule.

sendSticker

Send a sticker.

sendVenue

Send a venue.

sendVideo

Send a video.

sendVideoNote

Send a video note.

sendVoice

Send a voice message.

startBot

Start a bot. User-only.

stopPoll

Stop a poll.

unpinMessage

Unpin a pinned message.

unpinMessages

Unpin all pinned messages.

Payments

answerPreCheckoutQuery

Answer a pre-checkout query. Bot-only.

refundStarPayment

Refund a star payment. Bot-only.

Reactions

addReaction

Make a reaction to a message.

removeReaction

Undo a reaction made to a message.

setReactions

Change reactions made to a message.

Stories

addStoriesToHighlights

Add multiple stories to highlights. User-only.

addStoryToHighlights

Add a single story to highlights. User-only.

createStory

Create a story. User-only.

deleteStories

Delete multiple stories. User-only.

deleteStory

Delete a single story. User-only.

getStories

Retrieve multiple stories. User-only.

getStory

Retrieve a single story. User-only.

removeStoriesFromHighlights

Remove multiple stories from highlights. User-only.

removeStoryFromHighlights

Remove a single story from highlights. User-only.

Video Chats

downloadLiveStreamChunk

Download a live stream chunk. User-only.

getLiveStreamChannels

Get live stream channels. User-only.

getVideoChat

Get a video chat. User-only.

joinLiveStream

Join a live stream. User-only.

joinVideoChat

Join a video chat. User-only.

leaveVideoChat

Leave a video chat. User-only.

scheduleVideoChat

Schedule a video chat. User-only.

startVideoChat

Start a video chat. User-only.

Unlisted

blockUser

Block a user. User-only.

getNetworkStatistics

Get network statistics. This might not always be available.

unblockUser

Unblock a user. User-only.