--- title: Methods description: List of methods --- # Methods [Back to API documentation index](..) $MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); $MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); $MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); $MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); $MadelineProto->[bot_login](https://docs.madelineproto.xyz/complete_phone_login.html)($token); $MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); $MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); $MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); $MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); $MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); ***

$MadelineProto->[addChatMember](addChatMember.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [int](../types/int.md), 'forward_limit' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[addChatMembers](addChatMembers.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_ids' => \[[int](../types/int.md)\], \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[addRecentSticker](addRecentSticker.md)(\['is_attached' => [Bool](../types/Bool.md), 'sticker' => [InputFile](../types/InputFile.md), \]) === [$Stickers](../types/Stickers.md) ***

$MadelineProto->[addRecentlyFoundChat](addRecentlyFoundChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[addSavedAnimation](addSavedAnimation.md)(\['animation' => [InputFile](../types/InputFile.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[answerCallbackQuery](answerCallbackQuery.md)(\['callback_query_id' => [long](../types/long.md), 'text' => [string](../types/string.md), 'show_alert' => [Bool](../types/Bool.md), 'url' => [string](../types/string.md), 'cache_time' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[answerInlineQuery](answerInlineQuery.md)(\['inline_query_id' => [long](../types/long.md), 'is_personal' => [Bool](../types/Bool.md), 'results' => \[[InputInlineQueryResult](../types/InputInlineQueryResult.md)\], 'cache_time' => [int](../types/int.md), 'next_offset' => [string](../types/string.md), 'switch_pm_text' => [string](../types/string.md), 'switch_pm_parameter' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[blockUser](blockUser.md)(\['user_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[cancelDownloadFile](cancelDownloadFile.md)(\['file_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[changeAbout](changeAbout.md)(\['about' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[changeAccountTtl](changeAccountTtl.md)(\['ttl' => [accountTtl](../constructors/accountTtl.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[changeChannelAbout](changeChannelAbout.md)(\['channel_id' => [int](../types/int.md), 'about' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[changeChannelUsername](changeChannelUsername.md)(\['channel_id' => [int](../types/int.md), 'username' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[changeChatDraftMessage](changeChatDraftMessage.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'draft_message' => [draftMessage](../constructors/draftMessage.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[changeChatMemberStatus](changeChatMemberStatus.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [int](../types/int.md), 'status' => [ChatMemberStatus](../types/ChatMemberStatus.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[changeChatPhoto](changeChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputFile](../types/InputFile.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[changeChatReportSpamState](changeChatReportSpamState.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'is_spam_chat' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[changeChatTitle](changeChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[changeName](changeName.md)(\['first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[changePhoneNumber](changePhoneNumber.md)(\['phone_number' => [string](../types/string.md), 'allow_flash_call' => [Bool](../types/Bool.md), 'is_current_phone_number' => [Bool](../types/Bool.md), \]) === [$AuthState](../types/AuthState.md) ***

$MadelineProto->[changeUsername](changeUsername.md)(\['username' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[checkAuthBotToken](checkAuthBotToken.md)(\['token' => [string](../types/string.md), \]) === [$AuthState](../types/AuthState.md) ***

$MadelineProto->[checkAuthCode](checkAuthCode.md)(\['code' => [string](../types/string.md), 'first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$AuthState](../types/AuthState.md) ***

$MadelineProto->[checkAuthPassword](checkAuthPassword.md)(\['password' => [string](../types/string.md), \]) === [$AuthState](../types/AuthState.md) ***

$MadelineProto->[checkChangePhoneNumberCode](checkChangePhoneNumberCode.md)(\['code' => [string](../types/string.md), \]) === [$AuthState](../types/AuthState.md) ***

$MadelineProto->[checkChatInviteLink](checkChatInviteLink.md)(\['invite_link' => [string](../types/string.md), \]) === [$ChatInviteLinkInfo](../types/ChatInviteLinkInfo.md) ***

$MadelineProto->[clearRecentStickers](clearRecentStickers.md)(\['is_attached' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[closeChat](closeChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[closeSecretChat](closeSecretChat.md)(\['secret_chat_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[createChannelChat](createChannelChat.md)(\['channel_id' => [int](../types/int.md), \]) === [$Chat](../types/Chat.md) ***

$MadelineProto->[createGroupChat](createGroupChat.md)(\['group_id' => [int](../types/int.md), \]) === [$Chat](../types/Chat.md) ***

$MadelineProto->[createNewChannelChat](createNewChannelChat.md)(\['title' => [string](../types/string.md), 'is_supergroup' => [Bool](../types/Bool.md), 'about' => [string](../types/string.md), \]) === [$Chat](../types/Chat.md) ***

$MadelineProto->[createNewGroupChat](createNewGroupChat.md)(\['user_ids' => \[[int](../types/int.md)\], 'title' => [string](../types/string.md), \]) === [$Chat](../types/Chat.md) ***

$MadelineProto->[createNewSecretChat](createNewSecretChat.md)(\['user_id' => [int](../types/int.md), \]) === [$Chat](../types/Chat.md) ***

$MadelineProto->[createPrivateChat](createPrivateChat.md)(\['user_id' => [int](../types/int.md), \]) === [$Chat](../types/Chat.md) ***

$MadelineProto->[createSecretChat](createSecretChat.md)(\['secret_chat_id' => [int](../types/int.md), \]) === [$Chat](../types/Chat.md) ***

$MadelineProto->[deleteAccount](deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[deleteChannel](deleteChannel.md)(\['channel_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[deleteChatHistory](deleteChatHistory.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'remove_from_chat_list' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[deleteChatReplyMarkup](deleteChatReplyMarkup.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_id' => [long](../types/long.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[deleteContacts](deleteContacts.md)(\['user_ids' => \[[int](../types/int.md)\], \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[deleteMessages](deleteMessages.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_ids' => \[[long](../types/long.md)\], \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[deleteMessagesFromUser](deleteMessagesFromUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[deleteProfilePhoto](deleteProfilePhoto.md)(\['profile_photo_id' => [long](../types/long.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[deleteRecentSticker](deleteRecentSticker.md)(\['is_attached' => [Bool](../types/Bool.md), 'sticker' => [InputFile](../types/InputFile.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[deleteRecentlyFoundChat](deleteRecentlyFoundChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[deleteRecentlyFoundChats](deleteRecentlyFoundChats.md)(\[\]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[deleteSavedAnimation](deleteSavedAnimation.md)(\['animation' => [InputFile](../types/InputFile.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[downloadFile](downloadFile.md)(\['file_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[editInlineMessageCaption](editInlineMessageCaption.md)(\['inline_message_id' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'caption' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[editInlineMessageReplyMarkup](editInlineMessageReplyMarkup.md)(\['inline_message_id' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[editInlineMessageText](editInlineMessageText.md)(\['inline_message_id' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'input_message_content' => [InputMessageContent](../types/InputMessageContent.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[editMessageCaption](editMessageCaption.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_id' => [long](../types/long.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'caption' => [string](../types/string.md), \]) === [$Message](../types/Message.md) ***

$MadelineProto->[editMessageReplyMarkup](editMessageReplyMarkup.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_id' => [long](../types/long.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]) === [$Message](../types/Message.md) ***

$MadelineProto->[editMessageText](editMessageText.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_id' => [long](../types/long.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'input_message_content' => [InputMessageContent](../types/InputMessageContent.md), \]) === [$Message](../types/Message.md) ***

$MadelineProto->[exportChatInviteLink](exportChatInviteLink.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ChatInviteLink](../types/ChatInviteLink.md) ***

$MadelineProto->[finishFileGeneration](finishFileGeneration.md)(\['generation_id' => [long](../types/long.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[forwardMessages](forwardMessages.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'from_chat_id' => [long](../types/long.md), 'message_ids' => \[[long](../types/long.md)\], 'disable_notification' => [Bool](../types/Bool.md), 'from_background' => [Bool](../types/Bool.md), \]) === [$Messages](../types/Messages.md) ***

$MadelineProto->[getAccountTtl](getAccountTtl.md)(\[\]) === [$AccountTtl](../types/AccountTtl.md) ***

$MadelineProto->[getActiveSessions](getActiveSessions.md)(\[\]) === [$Sessions](../types/Sessions.md) ***

$MadelineProto->[getArchivedStickerSets](getArchivedStickerSets.md)(\['is_masks' => [Bool](../types/Bool.md), 'offset_sticker_set_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$StickerSets](../types/StickerSets.md) ***

$MadelineProto->[getAttachedStickerSets](getAttachedStickerSets.md)(\['file_id' => [int](../types/int.md), \]) === [$StickerSets](../types/StickerSets.md) ***

$MadelineProto->[getAuthState](getAuthState.md)(\[\]) === [$AuthState](../types/AuthState.md) ***

$MadelineProto->[getBlockedUsers](getBlockedUsers.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$Users](../types/Users.md) ***

$MadelineProto->[getCallbackQueryAnswer](getCallbackQueryAnswer.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_id' => [long](../types/long.md), 'payload' => [CallbackQueryPayload](../types/CallbackQueryPayload.md), \]) === [$CallbackQueryAnswer](../types/CallbackQueryAnswer.md) ***

$MadelineProto->[getChannel](getChannel.md)(\['channel_id' => [int](../types/int.md), \]) === [$Channel](../types/Channel.md) ***

$MadelineProto->[getChannelFull](getChannelFull.md)(\['channel_id' => [int](../types/int.md), \]) === [$ChannelFull](../types/ChannelFull.md) ***

$MadelineProto->[getChannelMembers](getChannelMembers.md)(\['channel_id' => [int](../types/int.md), 'filter' => [ChannelMembersFilter](../types/ChannelMembersFilter.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$ChatMembers](../types/ChatMembers.md) ***

$MadelineProto->[getChat](getChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Chat](../types/Chat.md) ***

$MadelineProto->[getChatHistory](getChatHistory.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'from_message_id' => [long](../types/long.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$Messages](../types/Messages.md) ***

$MadelineProto->[getChatMember](getChatMember.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [int](../types/int.md), \]) === [$ChatMember](../types/ChatMember.md) ***

$MadelineProto->[getChatReportSpamState](getChatReportSpamState.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ChatReportSpamState](../types/ChatReportSpamState.md) ***

$MadelineProto->[getChats](getChats.md)(\['offset_order' => [long](../types/long.md), 'offset_chat_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$Chats](../types/Chats.md) ***

$MadelineProto->[getCommonChats](getCommonChats.md)(\['user_id' => [int](../types/int.md), 'offset_chat_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$Chats](../types/Chats.md) ***

$MadelineProto->[getCreatedPublicChannels](getCreatedPublicChannels.md)(\[\]) === [$Channels](../types/Channels.md) ***

$MadelineProto->[getDeviceTokens](getDeviceTokens.md)(\[\]) === [$DeviceTokenSet](../types/DeviceTokenSet.md) ***

$MadelineProto->[getFile](getFile.md)(\['file_id' => [int](../types/int.md), \]) === [$File](../types/File.md) ***

$MadelineProto->[getFilePersistent](getFilePersistent.md)(\['persistent_file_id' => [string](../types/string.md), \]) === [$File](../types/File.md) ***

$MadelineProto->[getGameHighScores](getGameHighScores.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_id' => [long](../types/long.md), 'user_id' => [int](../types/int.md), \]) === [$GameHighScores](../types/GameHighScores.md) ***

$MadelineProto->[getGroup](getGroup.md)(\['group_id' => [int](../types/int.md), \]) === [$Group](../types/Group.md) ***

$MadelineProto->[getGroupFull](getGroupFull.md)(\['group_id' => [int](../types/int.md), \]) === [$GroupFull](../types/GroupFull.md) ***

$MadelineProto->[getInlineGameHighScores](getInlineGameHighScores.md)(\['inline_message_id' => [string](../types/string.md), 'user_id' => [int](../types/int.md), \]) === [$GameHighScores](../types/GameHighScores.md) ***

$MadelineProto->[getInlineQueryResults](getInlineQueryResults.md)(\['bot_user_id' => [int](../types/int.md), 'chat_id' => [InputPeer](../types/InputPeer.md), 'user_location' => [location](../constructors/location.md), 'query' => [string](../types/string.md), 'offset' => [string](../types/string.md), \]) === [$InlineQueryResults](../types/InlineQueryResults.md) ***

$MadelineProto->[getMe](getMe.md)(\[\]) === [$User](../types/User.md) ***

$MadelineProto->[getMessage](getMessage.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_id' => [long](../types/long.md), \]) === [$Message](../types/Message.md) ***

$MadelineProto->[getMessages](getMessages.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_ids' => \[[long](../types/long.md)\], \]) === [$Messages](../types/Messages.md) ***

$MadelineProto->[getNotificationSettings](getNotificationSettings.md)(\['scope' => [NotificationSettingsScope](../types/NotificationSettingsScope.md), \]) === [$NotificationSettings](../types/NotificationSettings.md) ***

$MadelineProto->[getOption](getOption.md)(\['name' => [string](../types/string.md), \]) === [$OptionValue](../types/OptionValue.md) ***

$MadelineProto->[getPasswordState](getPasswordState.md)(\[\]) === [$PasswordState](../types/PasswordState.md) ***

$MadelineProto->[getPrivacy](getPrivacy.md)(\['key' => [PrivacyKey](../types/PrivacyKey.md), \]) === [$PrivacyRules](../types/PrivacyRules.md) ***

$MadelineProto->[getRecentInlineBots](getRecentInlineBots.md)(\[\]) === [$Users](../types/Users.md) ***

$MadelineProto->[getRecentStickers](getRecentStickers.md)(\['is_attached' => [Bool](../types/Bool.md), \]) === [$Stickers](../types/Stickers.md) ***

$MadelineProto->[getRecoveryEmail](getRecoveryEmail.md)(\['password' => [string](../types/string.md), \]) === [$RecoveryEmail](../types/RecoveryEmail.md) ***

$MadelineProto->[getSavedAnimations](getSavedAnimations.md)(\[\]) === [$Animations](../types/Animations.md) ***

$MadelineProto->[getSecretChat](getSecretChat.md)(\['secret_chat_id' => [int](../types/int.md), \]) === [$SecretChat](../types/SecretChat.md) ***

$MadelineProto->[getStickerEmojis](getStickerEmojis.md)(\['sticker' => [InputFile](../types/InputFile.md), \]) === [$StickerEmojis](../types/StickerEmojis.md) ***

$MadelineProto->[getStickerSet](getStickerSet.md)(\['set_id' => [long](../types/long.md), \]) === [$StickerSet](../types/StickerSet.md) ***

$MadelineProto->[getStickerSets](getStickerSets.md)(\['is_masks' => [Bool](../types/Bool.md), \]) === [$StickerSets](../types/StickerSets.md) ***

$MadelineProto->[getStickers](getStickers.md)(\['emoji' => [string](../types/string.md), \]) === [$Stickers](../types/Stickers.md) ***

$MadelineProto->[getSupportUser](getSupportUser.md)(\[\]) === [$User](../types/User.md) ***

$MadelineProto->[getTrendingStickerSets](getTrendingStickerSets.md)(\[\]) === [$StickerSets](../types/StickerSets.md) ***

$MadelineProto->[getUser](getUser.md)(\['user_id' => [int](../types/int.md), \]) === [$User](../types/User.md) ***

$MadelineProto->[getUserFull](getUserFull.md)(\['user_id' => [int](../types/int.md), \]) === [$UserFull](../types/UserFull.md) ***

$MadelineProto->[getUserProfilePhotos](getUserProfilePhotos.md)(\['user_id' => [int](../types/int.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$UserProfilePhotos](../types/UserProfilePhotos.md) ***

$MadelineProto->[getWallpapers](getWallpapers.md)(\[\]) === [$Wallpapers](../types/Wallpapers.md) ***

$MadelineProto->[getWebPagePreview](getWebPagePreview.md)(\['message_text' => [string](../types/string.md), \]) === [$WebPage](../types/WebPage.md) ***

$MadelineProto->[importChatInviteLink](importChatInviteLink.md)(\['invite_link' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[importContacts](importContacts.md)(\['contacts' => \[[contact](../constructors/contact.md)\], \]) === [$Users](../types/Users.md) ***

$MadelineProto->[migrateGroupChatToChannelChat](migrateGroupChatToChannelChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Chat](../types/Chat.md) ***

$MadelineProto->[openChat](openChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[openMessageContent](openMessageContent.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_id' => [long](../types/long.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[pinChannelMessage](pinChannelMessage.md)(\['channel_id' => [int](../types/int.md), 'message_id' => [long](../types/long.md), 'disable_notification' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[recoverAuthPassword](recoverAuthPassword.md)(\['recovery_code' => [string](../types/string.md), \]) === [$AuthState](../types/AuthState.md) ***

$MadelineProto->[recoverPassword](recoverPassword.md)(\['recovery_code' => [string](../types/string.md), \]) === [$PasswordState](../types/PasswordState.md) ***

$MadelineProto->[registerDevice](registerDevice.md)(\['device_token' => [DeviceToken](../types/DeviceToken.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[reorderStickerSets](reorderStickerSets.md)(\['is_masks' => [Bool](../types/Bool.md), 'sticker_set_ids' => \[[long](../types/long.md)\], \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[reportChannelSpam](reportChannelSpam.md)(\['channel_id' => [int](../types/int.md), 'user_id' => [int](../types/int.md), 'message_ids' => \[[long](../types/long.md)\], \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[requestAuthPasswordRecovery](requestAuthPasswordRecovery.md)(\[\]) === [$AuthState](../types/AuthState.md) ***

$MadelineProto->[requestPasswordRecovery](requestPasswordRecovery.md)(\[\]) === [$PasswordRecoveryInfo](../types/PasswordRecoveryInfo.md) ***

$MadelineProto->[resendAuthCode](resendAuthCode.md)(\[\]) === [$AuthState](../types/AuthState.md) ***

$MadelineProto->[resendChangePhoneNumberCode](resendChangePhoneNumberCode.md)(\[\]) === [$AuthState](../types/AuthState.md) ***

$MadelineProto->[resetAllNotificationSettings](resetAllNotificationSettings.md)(\[\]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[resetAuth](resetAuth.md)(\['force' => [Bool](../types/Bool.md), \]) === [$AuthState](../types/AuthState.md) ***

$MadelineProto->[searchChatMessages](searchChatMessages.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'query' => [string](../types/string.md), 'from_message_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), 'filter' => [SearchMessagesFilter](../types/SearchMessagesFilter.md), \]) === [$Messages](../types/Messages.md) ***

$MadelineProto->[searchChats](searchChats.md)(\['query' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$Chats](../types/Chats.md) ***

$MadelineProto->[searchContacts](searchContacts.md)(\['query' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$Users](../types/Users.md) ***

$MadelineProto->[searchMessages](searchMessages.md)(\['query' => [string](../types/string.md), 'offset_date' => [int](../types/int.md), 'offset_chat_id' => [long](../types/long.md), 'offset_message_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$Messages](../types/Messages.md) ***

$MadelineProto->[searchPublicChat](searchPublicChat.md)(\['username' => [string](../types/string.md), \]) === [$Chat](../types/Chat.md) ***

$MadelineProto->[searchPublicChats](searchPublicChats.md)(\['username_prefix' => [string](../types/string.md), \]) === [$Chats](../types/Chats.md) ***

$MadelineProto->[searchStickerSet](searchStickerSet.md)(\['name' => [string](../types/string.md), \]) === [$StickerSet](../types/StickerSet.md) ***

$MadelineProto->[sendBotStartMessage](sendBotStartMessage.md)(\['bot_user_id' => [int](../types/int.md), 'chat_id' => [InputPeer](../types/InputPeer.md), 'parameter' => [string](../types/string.md), \]) === [$Message](../types/Message.md) ***

$MadelineProto->[sendChatAction](sendChatAction.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[sendChatScreenshotTakenNotification](sendChatScreenshotTakenNotification.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[sendChatSetTtlMessage](sendChatSetTtlMessage.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'ttl' => [int](../types/int.md), \]) === [$Message](../types/Message.md) ***

$MadelineProto->[sendInlineQueryResultMessage](sendInlineQueryResultMessage.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'reply_to_message_id' => [long](../types/long.md), 'disable_notification' => [Bool](../types/Bool.md), 'from_background' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'result_id' => [string](../types/string.md), \]) === [$Message](../types/Message.md) ***

$MadelineProto->[sendMessage](sendMessage.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'reply_to_message_id' => [long](../types/long.md), 'disable_notification' => [Bool](../types/Bool.md), 'from_background' => [Bool](../types/Bool.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'input_message_content' => [InputMessageContent](../types/InputMessageContent.md), \]) === [$Message](../types/Message.md) ***

$MadelineProto->[setAlarm](setAlarm.md)(\['seconds' => [double](../types/double.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[setAuthPhoneNumber](setAuthPhoneNumber.md)(\['phone_number' => [string](../types/string.md), 'allow_flash_call' => [Bool](../types/Bool.md), 'is_current_phone_number' => [Bool](../types/Bool.md), \]) === [$AuthState](../types/AuthState.md) ***

$MadelineProto->[setBotUpdatesStatus](setBotUpdatesStatus.md)(\['pending_update_count' => [int](../types/int.md), 'error_message' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[setFileGenerationProgress](setFileGenerationProgress.md)(\['generation_id' => [long](../types/long.md), 'ready' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[setGameScore](setGameScore.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_id' => [long](../types/long.md), 'edit_message' => [Bool](../types/Bool.md), 'user_id' => [int](../types/int.md), 'score' => [int](../types/int.md), 'force' => [Bool](../types/Bool.md), \]) === [$Message](../types/Message.md) ***

$MadelineProto->[setInlineGameScore](setInlineGameScore.md)(\['inline_message_id' => [string](../types/string.md), 'edit_message' => [Bool](../types/Bool.md), 'user_id' => [int](../types/int.md), 'score' => [int](../types/int.md), 'force' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[setNotificationSettings](setNotificationSettings.md)(\['scope' => [NotificationSettingsScope](../types/NotificationSettingsScope.md), 'notification_settings' => [notificationSettings](../constructors/notificationSettings.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[setOption](setOption.md)(\['name' => [string](../types/string.md), 'value' => [OptionValue](../types/OptionValue.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[setPassword](setPassword.md)(\['old_password' => [string](../types/string.md), 'new_password' => [string](../types/string.md), 'new_hint' => [string](../types/string.md), 'set_recovery_email' => [Bool](../types/Bool.md), 'new_recovery_email' => [string](../types/string.md), \]) === [$PasswordState](../types/PasswordState.md) ***

$MadelineProto->[setPrivacy](setPrivacy.md)(\['key' => [PrivacyKey](../types/PrivacyKey.md), 'rules' => [privacyRules](../constructors/privacyRules.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[setProfilePhoto](setProfilePhoto.md)(\['photo_path' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[setRecoveryEmail](setRecoveryEmail.md)(\['password' => [string](../types/string.md), 'new_recovery_email' => [string](../types/string.md), \]) === [$PasswordState](../types/PasswordState.md) ***

$MadelineProto->[terminateAllOtherSessions](terminateAllOtherSessions.md)(\[\]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[terminateSession](terminateSession.md)(\['session_id' => [long](../types/long.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[test->callBytes](test_callBytes.md)(\['x' => [bytes](../types/bytes.md), \]) === [$test\_Bytes](../types/test_Bytes.md) $MadelineProto->[test->callEmpty](test_callEmpty.md)(\[\]) === [$test\_Empty](../types/test_Empty.md) $MadelineProto->[test->callString](test_callString.md)(\['x' => [string](../types/string.md), \]) === [$test\_String](../types/test_String.md) $MadelineProto->[test->callVectorInt](test_callVectorInt.md)(\['x' => \[[int](../types/int.md)\], \]) === [$test\_VectorInt](../types/test_VectorInt.md) $MadelineProto->[test->callVectorIntObject](test_callVectorIntObject.md)(\['x' => \[[test\_Int](../types/test_Int.md)\], \]) === [$test\_VectorIntObject](../types/test_VectorIntObject.md) $MadelineProto->[test->callVectorString](test_callVectorString.md)(\['x' => \[[string](../types/string.md)\], \]) === [$test\_VectorString](../types/test_VectorString.md) $MadelineProto->[test->callVectorStringObject](test_callVectorStringObject.md)(\['x' => \[[test\_String](../types/test_String.md)\], \]) === [$test\_VectorStringObject](../types/test_VectorStringObject.md) $MadelineProto->[test->forceGetDifference](test_forceGetDifference.md)(\[\]) === [$Ok](../types/Ok.md) $MadelineProto->[test->squareInt](test_squareInt.md)(\['x' => [int](../types/int.md), \]) === [$test\_Int](../types/test_Int.md) $MadelineProto->[test->testNet](test_testNet.md)(\[\]) === [$test\_Empty](../types/test_Empty.md) ***

$MadelineProto->[toggleChannelInvites](toggleChannelInvites.md)(\['channel_id' => [int](../types/int.md), 'anyone_can_invite' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[toggleChannelSignMessages](toggleChannelSignMessages.md)(\['channel_id' => [int](../types/int.md), 'sign_messages' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[toggleGroupEditors](toggleGroupEditors.md)(\['group_id' => [int](../types/int.md), 'anyone_can_edit' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[unblockUser](unblockUser.md)(\['user_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[unpinChannelMessage](unpinChannelMessage.md)(\['channel_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[updateStickerSet](updateStickerSet.md)(\['set_id' => [long](../types/long.md), 'is_installed' => [Bool](../types/Bool.md), 'is_archived' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[viewMessages](viewMessages.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_ids' => \[[long](../types/long.md)\], \]) === [$Ok](../types/Ok.md) ***

$MadelineProto->[viewTrendingStickerSets](viewTrendingStickerSets.md)(\['sticker_set_ids' => \[[long](../types/long.md)\], \]) === [$Ok](../types/Ok.md)