MTKruto Documentation

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.

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

banChatMember

Ban a member from a chat.

createInviteLink

Create an invite link.

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.

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.

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.

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.

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.

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.

sendLocation

Send a location.

sendMessage

Send a text message.

sendPhoto

Send a photo.

sendPoll

Send a poll.

sendSticker

Send a sticker.

sendVenue

Send a venue.

sendVideo

Send a video.

sendVideoNote

Send a video note.

sendVoice

Send a voice message.

stopPoll

Stop a poll.

unpinMessage

Unpin a pinned message.

unpinMessages

Unpin all pinned messages.

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.