Methods

Account

getBusinessConnection

Get a business connection.

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.

hideUsernames

Hide all usernames from a supergroup or a channel’s profile.

reorderUsernames

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

setBirthday

Set the birthday of the current user.

setEmojiStatus

Set the current account’s emoji status.

setLocation

Set the location of the current user.

setNameColor

Set the name color of the current user.

setOnline

Set the current account’s online status.

setPersonalChannel

Set the personal channel of the current user.

setProfileColor

Set the profile color of the current user.

setUserEmojiStatus

Set the emoji status of a bot’s user.

showUsername

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

updateProfile

Update the profile of the current user. At least one parameter must be specified.

Bots

getMyCommands

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

getMyDescription

Get the bot’s description in the given language.

getMyName

Get the bot’s name in the given language.

getMyShortDescription

Get the bot’s short description in the given language.

setMyCommands

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

setMyDescription

Set the bot’s description in the given language.

setMyName

Set the bot’s name in the given language.

setMyShortDescription

Set the bot’s short description in the given language.

Callback Queries

answerCallbackQuery

Answer a callback query.

sendCallbackQuery

Send a callback query.

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.

archiveChat

Archive a single chat.

archiveChats

Archive multiple chats.

banChatMember

Ban a member from a chat.

closeChat

Close a chat previously opened by openChat.

closeTopic

Close a forum topic.

createChannel

Create a channel.

createGroup

Create a group.

createInviteLink

Create an invite link.

createSupergroup

Create a supergroup.

createTopic

Create a forum topic.

declineJoinRequest

Decline a join request.

declineJoinRequests

Decline all join requests.

deleteChat

Delete a chat.

deleteChatPhoto

Delete a chat’s photo.

deleteChatStickerSet

Delete a chat’s sticker set.

disableBusinessBots

Disable business bots in a private chat.

disableJoinRequests

Disable join requests in a chat.

disableSlowMode

Disable slow mode in a group.

editTopic

Edit a forum topic.

enableBusinessBots

Enable business bots in a private chat.

enableJoinRequests

Enable join requests in a chat.

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.

getChatSettings

Get the settings of a chat.

getCommonChats

Get common chats between a user and the current one.

getCreatedInviteLinks

Get the invite links created for a chat.

getDiscussionChatSuggestions

Get discussion chat suggestions.

getHistory

Get chat history.

getInactiveChats

Get inactive chats.

getJoinRequests

Get pending join requests in a chat.

hideGeneralTopic

Hide the general forum topic.

joinChat

Join a chat.

kickChatMember

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

leaveChat

Leave a chat.

openChat

Open a chat.

pinTopic

Pin a forum topic.

reopenTopic

Reopen a forum topic.

setAntispamEnabled

Enable or disable automatic anti-spam in a group.

setAvailableReactions

Set a chat’s available reactions.

setBoostsRequiredToCircumventRestrictions

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

setChatDescription

Change the description of a chat.

setChatMemberRights

Set the rights of a chat member.

setChatPhoto

Set a chat’s photo.

setChatStickerSet

Set a chat’s sticker set.

setChatTitle

Change the title of a chat.

setDiscussionChat

Set a channel’s discussion chat.

setMemberListVisibility

Hide or show the member list of a group to non-admins.

setMessageTtl

Set the time to live of the messages of a chat.

setSignaturesEnabled

Enable or disable post signatures in a channel.

setSlowMode

Change slow mode in a group.

setTopicsEnabled

Enable or disable topics in a group.

showGeneralTopic

Show the general forum topic.

transferChatOwnership

Transfer the ownership of a chat.

unarchiveChat

Unarchive a single chat.

unarchiveChats

Unarchive multiple chats.

unbanChatMember

Unban a member from a chat.

unpinTopic

Unpin a forum topic.

Contacts

addContact

Add a contact.

deleteContact

Delete a single contact.

deleteContacts

Delete multiple contacts.

getContacts

Get contacts.

Files

download

Download a file.

getCustomEmojiStickers

Get custom emoji documents for download.

Gifts

getClaimedGifts

Get gifts claimed by a user or a channel.

getGift

Get a gift using its slug.

getGifts

Get available gifts.

sellGift

Sell a gift.

sendGift

Send a gift.

Inline Queries

answerInlineQuery

Answer an inline query.

sendInlineQuery

Send an inline query.

Messages

deleteChatMemberMessages

Delete all messages sent by a specific member of a chat.

deleteMessage

Delete a single message.

deleteMessages

Delete multiple messages.

deleteScheduledMessage

Delete a scheduled message.

deleteScheduledMessages

Delete multiple scheduled messages.

editInlineMessageCaption

Edit an inline message’s caption.

editInlineMessageLiveLocation

Edit an inline message’s live location.

editInlineMessageMedia

Edit an inline message’s media.

editInlineMessageReplyMarkup

Edit an inline message’s reply markup.

editInlineMessageText

Edit an inline message’s text.

editMessageCaption

Edit a message’s caption.

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.

getLinkPreview

Get the link preview for a message that is about to be sent.

getMessage

Retrieve a single message.

getMessages

Retrieve multiple messages.

openMiniApp

Open a mini app.

pinMessage

Pin a message in a chat.

readMessages

Mark messages as read.

resolveMessageLink

Retrieve a message using its link.

searchMessages

Search the messages of a chat.

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.

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.

stopPoll

Stop a poll.

transcribeVoice

Transcribe a voice message.

unpinMessage

Unpin a pinned message.

unpinMessages

Unpin all pinned messages.

Payments

answerPreCheckoutQuery

Answer a pre-checkout query.

refundStarPayment

Refund a star payment.

Polls

retractVote

Retract a vote.

vote

Cast a vote.

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.

addStoryToHighlights

Add a single story to highlights.

createStory

Create a story.

deleteStories

Delete multiple stories.

deleteStory

Delete a single story.

getStories

Retrieve multiple stories.

getStory

Retrieve a single story.

removeStoriesFromHighlights

Remove multiple stories from highlights.

removeStoryFromHighlights

Remove a single story from highlights.

Translations

getTranslations

Get translations.

Video Chats

downloadLiveStreamChunk

Download a live stream chunk.

getLiveStreamChannels

Get live stream channels.

getVideoChat

Get a video chat.

joinLiveStream

Join a live stream.

joinVideoChat

Join a video chat.

leaveVideoChat

Leave a video chat.

scheduleVideoChat

Schedule a video chat.

startVideoChat

Start a video chat.

Unlisted

blockUser

Block a user.

getNetworkStatistics

Get network statistics. This might not always be available.

unblockUser

Unblock a user.