MTKruto PythonΒΆ
Welcome to the API reference of the official Python library for MTKruto Server!
As you may have already noticed, all methods and fields of the API are in snake_case in this library. We did this for convenience and to make it consistent with your existing Python code.
The package consists of four submodules:
mtkruto
(includes theClient
class)mtkruto.types
(MTKruto types),mtkruto.filters
(update filters)mtkruto.errors
(MTKruto errors).
- mtkruto
Client
Client.add_chat_member()
Client.add_chat_members()
Client.add_handler()
Client.add_reaction()
Client.add_stories_to_highlights()
Client.add_story_to_highlights()
Client.answer_callback_query()
Client.answer_inline_query()
Client.answer_pre_checkout_query()
Client.approve_join_request()
Client.approve_join_requests()
Client.ban_chat_member()
Client.block_user()
Client.close_chat()
Client.create_channel()
Client.create_gorup()
Client.create_invite_link()
Client.create_story()
Client.create_supergroup()
Client.decline_join_request()
Client.decline_join_requests()
Client.delete_chat_member_messages()
Client.delete_chat_photo()
Client.delete_chat_sticker_set()
Client.delete_message()
Client.delete_messages()
Client.delete_scheduled_message()
Client.delete_scheduled_messages()
Client.delete_stories()
Client.delete_story()
Client.disable_join_requests()
Client.download()
Client.download_live_stream_chunk()
Client.edit_inline_message_live_location()
Client.edit_inline_message_media()
Client.edit_inline_message_reply_markup()
Client.edit_inline_message_text()
Client.edit_message_live_location()
Client.edit_message_media()
Client.edit_message_reply_markup()
Client.edit_message_text()
Client.enable_join_requests()
Client.forward_message()
Client.forward_messages()
Client.get_business_connection()
Client.get_chat()
Client.get_chat_administrators()
Client.get_chat_member()
Client.get_chat_members()
Client.get_chats()
Client.get_created_invite_links()
Client.get_custom_emoji_stickers()
Client.get_history()
Client.get_inactive_chats()
Client.get_live_stream_channels()
Client.get_me()
Client.get_message()
Client.get_messages()
Client.get_my_commands()
Client.get_my_description()
Client.get_my_name()
Client.get_my_short_description()
Client.get_network_statistics()
Client.get_stories()
Client.get_story()
Client.get_updates()
Client.get_video_chat()
Client.hide_username()
Client.hide_usernames()
Client.invoke()
Client.join_chat()
Client.join_live_stream()
Client.join_video_chat()
Client.kick_chat_member()
Client.leave_chat()
Client.leave_video_chat()
Client.on_business_connection()
Client.on_callback_query()
Client.on_chat_member()
Client.on_chosen_inline_result()
Client.on_deleted_chat()
Client.on_deleted_messages()
Client.on_deleted_story()
Client.on_edited_chat()
Client.on_edited_message()
Client.on_inline_query()
Client.on_join_request()
Client.on_message_interactions()
Client.on_message_reaction_count()
Client.on_message_reactions()
Client.on_my_chat_member()
Client.on_new_chat()
Client.on_new_message()
Client.on_new_story()
Client.on_pre_checkout_query()
Client.on_update()
Client.on_video_chat()
Client.open_chat()
Client.pin_message()
Client.read_messages()
Client.refund_star_payment()
Client.remove_reaction()
Client.remove_stories_from_highlights()
Client.remove_story_from_highlights()
Client.reorder_usernames()
Client.run()
Client.schedule_video_chat()
Client.search_messages()
Client.send_animation()
Client.send_audio()
Client.send_callback_query()
Client.send_chat_action()
Client.send_contact()
Client.send_dice()
Client.send_document()
Client.send_inline_query()
Client.send_invoice()
Client.send_location()
Client.send_media_group()
Client.send_message()
Client.send_photo()
Client.send_poll()
Client.send_scheduled_message()
Client.send_scheduled_messages()
Client.send_sticker()
Client.send_venue()
Client.send_video()
Client.send_video_note()
Client.send_voice()
Client.set_available_reactions()
Client.set_boosts_required_to_circumvent_restrictions()
Client.set_chat_member_rights()
Client.set_chat_photo()
Client.set_chat_sticker_set()
Client.set_message_ttl()
Client.set_my_commands()
Client.set_my_description()
Client.set_my_name()
Client.set_my_short_description()
Client.set_online()
Client.set_reactions()
Client.show_username()
Client.start()
Client.start_bot()
Client.start_video_chat()
Client.stop_poll()
Client.unban_chat_member()
Client.unblock_user()
Client.unpin_message()
Client.unpin_messages()
- mtkruto.types
Animation
Audio
Birthday
BotCommand
BotCommandScopeAllChatAdministrators
BotCommandScopeAllGroupChats
BotCommandScopeAllPrivateChats
BotCommandScopeChat
BotCommandScopeChatAdministrators
BotCommandScopeChatMember
BotCommandScopeDefault
BusinessConnection
CallbackQuery
CallbackQueryAnswer
CallbackQueryQuestionButton
CallbackQueryQuestionGame
CallbackQueryQuestionPassword
ChatAdministratorRights
ChatBase
ChatChannel
ChatGroup
ChatListItem
ChatMemberAdministrator
ChatMemberBanned
ChatMemberCreator
ChatMemberLeft
ChatMemberMember
ChatMemberRestricted
ChatMemberRights
ChatMemberUpdated
ChatPChannel
ChatPChannelBase
ChatPGroup
ChatPPrivate
ChatPSupergroup
ChatPhoto
ChatPrivate
ChatSupergroup
ChosenInlineResult
Contact
Dice
Document
FailedInvitation
ForwardHeaderChannel
ForwardHeaderHidden
ForwardHeaderSupergroup
ForwardHeaderUnsupported
ForwardHeaderUser
Game
Giveaway
GiveawayParameters
InactiveChat
InlineKeyboardButtonCallback
InlineKeyboardButtonCopy
InlineKeyboardButtonGame
InlineKeyboardButtonLogin
InlineKeyboardButtonMiniApp
InlineKeyboardButtonPay
InlineKeyboardButtonSwitchInline
InlineKeyboardButtonSwitchInlineChosen
InlineKeyboardButtonSwitchInlineCurrent
InlineKeyboardButtonURL
InlineQuery
InlineQueryAnswer
InlineQueryResultArticle
InlineQueryResultAudio
InlineQueryResultButton
InlineQueryResultCachedAudio
InlineQueryResultCachedDocument
InlineQueryResultCachedGif
InlineQueryResultCachedMpeg4Gif
InlineQueryResultCachedPhoto
InlineQueryResultCachedSticker
InlineQueryResultCachedVideo
InlineQueryResultCachedVoice
InlineQueryResultContact
InlineQueryResultDocument
InlineQueryResultGame
InlineQueryResultGif
InlineQueryResultLocation
InlineQueryResultMpeg4Gif
InlineQueryResultPhoto
InlineQueryResultVenue
InlineQueryResultVideo
InlineQueryResultVoice
InputMediaAnimation
InputMediaAudio
InputMediaDocument
InputMediaPhoto
InputMediaVideo
InputStoryContentPhoto
InputStoryContentVideo
InviteLink
Invoice
JoinRequest
KeyboardButtonMiniApp
KeyboardButtonPollType
KeyboardButtonRequestChat
KeyboardButtonRequestContact
KeyboardButtonRequestLocation
KeyboardButtonRequestPoll
KeyboardButtonRequestUser
KeyboardButtonText
LinkPreview
LiveStreamChannel
Location
LoginUrl
MaskPosition
MessageAnimation
MessageAudio
MessageAutoDeleteTimerChanged
MessageChannelCreated
MessageChatMigratedFrom
MessageChatMigratedTo
MessageContact
MessageContentContact
MessageContentInvoice
MessageContentLocation
MessageContentText
MessageContentVenue
MessageDeletedChatPhoto
MessageDice
MessageDocument
MessageEntityBankCard
MessageEntityBlockquote
MessageEntityBold
MessageEntityBotCommand
MessageEntityCashtag
MessageEntityCode
MessageEntityCustomEmoji
MessageEntityEmailAddress
MessageEntityHashtag
MessageEntityItalic
MessageEntityMention
MessageEntityPhoneNumber
MessageEntityPre
MessageEntitySpoiler
MessageEntityStrikethrough
MessageEntityTextLink
MessageEntityTextMention
MessageEntityURL
MessageEntityUnderline
MessageForumTopicClosed
MessageForumTopicCreated
MessageForumTopicEdited
MessageForumTopicReopened
MessageGame
MessageGiveaway
MessageGroupCreated
MessageInteractions
MessageInvoice
MessageLeftChatMember
MessageLink
MessageLocation
MessageNewChatMembers
MessageNewChatPhoto
MessageNewChatTitle
MessagePhoto
MessagePinnedMessage
MessagePoll
MessageReaction
MessageReactionCount
MessageReactions
MessageReference
MessageRefundedPayment
MessageSticker
MessageSuccessfulPayment
MessageSupergroupCreated
MessageText
MessageUnsupported
MessageUserShared
MessageVenue
MessageVideo
MessageVideoChatEnded
MessageVideoChatScheduled
MessageVideoChatStarted
MessageVideoNote
MessageVoice
MessageWriteAccessAllowed
MiniAppInfo
NetworkStatistics
NetworkStatisticsEntry
OpeningHours
OrderInfo
Photo
Poll
PollOption
PreCheckoutQuery
PriceTag
ReactionCount
ReactionCustom
ReactionEmoji
ReactionPaid
RefundedPayment
ReplyMarkupForceReply
ReplyMarkupInlineKeyboard
ReplyMarkupKeyboard
ReplyMarkupRemoveKeyboard
ReplyQuote
ReplyToMessage
ReplyToStory
RestrictionReason
ShippingAddress
Sticker
Story
StoryContentPhoto
StoryContentUnsupported
StoryContentVideo
StoryInteractions
StoryInteractiveAreaLocation
StoryInteractiveAreaMessage
StoryInteractiveAreaPosition
StoryInteractiveAreaReaction
StoryInteractiveAreaVenue
StoryPrivacyCloseFriends
StoryPrivacyConctacts
StoryPrivacyEveryone
StoryPrivacyOnly
StoryReaction
StoryReference
SuccessfulPayment
SwitchInlineQueryChosenChats
Thumbnail
UpdateBusinessConnection
UpdateCallbackQuery
UpdateChatMember
UpdateChosenInlineResult
UpdateDeletedChat
UpdateDeletedStory
UpdateEditedChat
UpdateInlineQuery
UpdateJoinRequest
UpdateMessageEdited
UpdateMessageInteractions
UpdateMessageReactionCount
UpdateMessageReactions
UpdateMessageScheduled
UpdateMessagesDeleted
UpdateMyChatMember
UpdateNewChat
UpdateNewMessage
UpdateNewStory
UpdatePreCheckoutQuery
UpdateVideoChat
User
Venue
Video
VideoChatActive
VideoChatEnded
VideoChatScheduled
VideoNote
Voice
- mtkruto.filters
Filter
animation
audio
auto_delete_timer_changed
bot
channel
channel_created
chat()
chat_migrated_from
chat_migrated_to
contact
deleted_chat_photo
dice
document
forum_topic_closed
forum_topic_created
forum_topic_edited
forum_topic_reopened
forward
game
giveaway
group
group_created
left_chat_member
link
location
media_group
new_chat_members
new_chat_photo
new_chat_title
out
photo
pinned_message
poll
private
reply
reply_quote
sender_chat
service
sticker
successful_payment
supergroup_created
text
topic
unsupported
user()
user_chared
venue
via_bot
video
video_chat_ended
video_chat_scheduled
video_chat_started
video_note
voice
write_access_allowed