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 theClientclass)mtkruto.types(MTKruto types),mtkruto.filters(update filters)mtkruto.errors(MTKruto errors).
- mtkruto
ClientClient.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
AnimationAudioBirthdayBotCommandBotCommandScopeAllChatAdministratorsBotCommandScopeAllGroupChatsBotCommandScopeAllPrivateChatsBotCommandScopeChatBotCommandScopeChatAdministratorsBotCommandScopeChatMemberBotCommandScopeDefaultBusinessConnectionCallbackQueryCallbackQueryAnswerCallbackQueryQuestionButtonCallbackQueryQuestionGameCallbackQueryQuestionPasswordChatAdministratorRightsChatBaseChatChannelChatGroupChatListItemChatMemberAdministratorChatMemberBannedChatMemberCreatorChatMemberLeftChatMemberMemberChatMemberRestrictedChatMemberRightsChatMemberUpdatedChatPChannelChatPChannelBaseChatPGroupChatPPrivateChatPSupergroupChatPhotoChatPrivateChatSupergroupChosenInlineResultContactDiceDocumentFailedInvitationForwardHeaderChannelForwardHeaderHiddenForwardHeaderSupergroupForwardHeaderUnsupportedForwardHeaderUserGameGiveawayGiveawayParametersInactiveChatInlineKeyboardButtonCallbackInlineKeyboardButtonCopyInlineKeyboardButtonGameInlineKeyboardButtonLoginInlineKeyboardButtonMiniAppInlineKeyboardButtonPayInlineKeyboardButtonSwitchInlineInlineKeyboardButtonSwitchInlineChosenInlineKeyboardButtonSwitchInlineCurrentInlineKeyboardButtonURLInlineQueryInlineQueryAnswerInlineQueryResultArticleInlineQueryResultAudioInlineQueryResultButtonInlineQueryResultCachedAudioInlineQueryResultCachedDocumentInlineQueryResultCachedGifInlineQueryResultCachedMpeg4GifInlineQueryResultCachedPhotoInlineQueryResultCachedStickerInlineQueryResultCachedVideoInlineQueryResultCachedVoiceInlineQueryResultContactInlineQueryResultDocumentInlineQueryResultGameInlineQueryResultGifInlineQueryResultLocationInlineQueryResultMpeg4GifInlineQueryResultPhotoInlineQueryResultVenueInlineQueryResultVideoInlineQueryResultVoiceInputMediaAnimationInputMediaAudioInputMediaDocumentInputMediaPhotoInputMediaVideoInputStoryContentPhotoInputStoryContentVideoInviteLinkInvoiceJoinRequestKeyboardButtonMiniAppKeyboardButtonPollTypeKeyboardButtonRequestChatKeyboardButtonRequestContactKeyboardButtonRequestLocationKeyboardButtonRequestPollKeyboardButtonRequestUserKeyboardButtonTextLinkPreviewLiveStreamChannelLocationLoginUrlMaskPositionMessageAnimationMessageAudioMessageAutoDeleteTimerChangedMessageChannelCreatedMessageChatMigratedFromMessageChatMigratedToMessageContactMessageContentContactMessageContentInvoiceMessageContentLocationMessageContentTextMessageContentVenueMessageDeletedChatPhotoMessageDiceMessageDocumentMessageEntityBankCardMessageEntityBlockquoteMessageEntityBoldMessageEntityBotCommandMessageEntityCashtagMessageEntityCodeMessageEntityCustomEmojiMessageEntityEmailAddressMessageEntityHashtagMessageEntityItalicMessageEntityMentionMessageEntityPhoneNumberMessageEntityPreMessageEntitySpoilerMessageEntityStrikethroughMessageEntityTextLinkMessageEntityTextMentionMessageEntityURLMessageEntityUnderlineMessageForumTopicClosedMessageForumTopicCreatedMessageForumTopicEditedMessageForumTopicReopenedMessageGameMessageGiveawayMessageGroupCreatedMessageInteractionsMessageInvoiceMessageLeftChatMemberMessageLinkMessageLocationMessageNewChatMembersMessageNewChatPhotoMessageNewChatTitleMessagePhotoMessagePinnedMessageMessagePollMessageReactionMessageReactionCountMessageReactionsMessageReferenceMessageRefundedPaymentMessageStickerMessageSuccessfulPaymentMessageSupergroupCreatedMessageTextMessageUnsupportedMessageUserSharedMessageVenueMessageVideoMessageVideoChatEndedMessageVideoChatScheduledMessageVideoChatStartedMessageVideoNoteMessageVoiceMessageWriteAccessAllowedMiniAppInfoNetworkStatisticsNetworkStatisticsEntryOpeningHoursOrderInfoPhotoPollPollOptionPreCheckoutQueryPriceTagReactionCountReactionCustomReactionEmojiReactionPaidRefundedPaymentReplyMarkupForceReplyReplyMarkupInlineKeyboardReplyMarkupKeyboardReplyMarkupRemoveKeyboardReplyQuoteReplyToMessageReplyToStoryRestrictionReasonShippingAddressStickerStoryStoryContentPhotoStoryContentUnsupportedStoryContentVideoStoryInteractionsStoryInteractiveAreaLocationStoryInteractiveAreaMessageStoryInteractiveAreaPositionStoryInteractiveAreaReactionStoryInteractiveAreaVenueStoryPrivacyCloseFriendsStoryPrivacyConctactsStoryPrivacyEveryoneStoryPrivacyOnlyStoryReactionStoryReferenceSuccessfulPaymentSwitchInlineQueryChosenChatsThumbnailUpdateBusinessConnectionUpdateCallbackQueryUpdateChatMemberUpdateChosenInlineResultUpdateDeletedChatUpdateDeletedStoryUpdateEditedChatUpdateInlineQueryUpdateJoinRequestUpdateMessageEditedUpdateMessageInteractionsUpdateMessageReactionCountUpdateMessageReactionsUpdateMessageScheduledUpdateMessagesDeletedUpdateMyChatMemberUpdateNewChatUpdateNewMessageUpdateNewStoryUpdatePreCheckoutQueryUpdateVideoChatUserVenueVideoVideoChatActiveVideoChatEndedVideoChatScheduledVideoNoteVoice
 
- mtkruto.filters
Filteranimationaudioauto_delete_timer_changedbotchannelchannel_createdchat()chat_migrated_fromchat_migrated_tocontactdeleted_chat_photodicedocumentforum_topic_closedforum_topic_createdforum_topic_editedforum_topic_reopenedforwardgamegiveawaygroupgroup_createdleft_chat_memberlinklocationmedia_groupnew_chat_membersnew_chat_photonew_chat_titleoutphotopinned_messagepollprivatereplyreply_quotesender_chatservicestickersuccessful_paymentsupergroup_createdtexttopicunsupporteduser()user_charedvenuevia_botvideovideo_chat_endedvideo_chat_scheduledvideo_chat_startedvideo_notevoicewrite_access_allowed