diff --git a/README.md b/README.md index 9e2ec079..de142967 100644 --- a/README.md +++ b/README.md @@ -213,14 +213,14 @@ for ($x = 0; $x < $sentCode['type']['length']; $x++) { $authorization = $MadelineProto->complete_phone_login($code); // Complete authorization var_dump($authorization); -var_dump($MadelineProto->API->resolve_username('@Palmas2012')); // Always use this method to resolve usernames, but you won't need to call this to get info about peers, as get_peer and get_input_peer will call it for you if needed +var_dump($MadelineProto->resolve_username('@Palmas2012')); // Always use this method to resolve usernames, but you won't need to call this to get info about peers, as get_peer and get_input_peer will call it for you if needed -$mention = $MadelineProto->API->get_peer('@veetaw'); // Returns an object of type User or Chat -$mention = $MadelineProto->API->constructor2inputpeer($mention); // Converts an object of type User or Chat to an object of type inputPeer +$mention = $MadelineProto->get_peer('@veetaw'); // Returns an object of type User or Chat +$mention = $MadelineProto->constructor2inputpeer($mention); // Converts an object of type User or Chat to an object of type inputPeer $message = "I've installed MadelineProto!"; foreach (['@pwrtelegramgroup', '@pwrtelegramgroupita'] as $peer) { - $peer = $MadelineProto->API->get_input_peer($peer); + $peer = $MadelineProto->get_input_peer($peer); $sentMessage = $MadelineProto->messages->sendMessage(['peer' => $peer, 'message' => $message, 'entities' => [['_' => 'inputMessageEntityMentionName', 'offset' => 0, 'length' => strlen($message), 'user_id' => $mention]]]); var_dump($sentMessage); } @@ -263,13 +263,18 @@ src/danog/MadelineProto/ ResponseHandler - Handles the content of responses received, service messages, rpc results, errors, and stores them into the response section of the outgoing messages array) SaltHandler - Handles server salts SeqNoHandler - Handles sequence numbers (checks validity) + PeerHandler - Manages peers + UpdateHandler - Handles updates TL/ Exception - Handles exceptions in the TL namespace TL - Handles TL serialization and deserialization TLConstructor - Stores TL constructors TLMethod - Stores TL methods TLParams - Parses params - API - Wrapper class that instantiates the MTProto class, sets the error handler, provides a wrapper for calling mtproto methods directly as class submethods, and provides some simplified wrappers for logging in to telegram + Wrappers/ + Login - Handles logging in as a bot or a user, logging out + PeerHandler - Eases getting of input peer objects using usernames or bot API chat ids + API - Wrapper class that instantiates the MTProto class, sets the error handler, provides a wrapper for calling mtproto methods directly as class submethods, and uses the simplified wrappers from Wrappers/ APIFactory - Provides a wrapper for calling namespaced mtproto methods directly as class submethods Connection - Handles tcp/udp/http connections and wrapping payloads generated by MTProtoTools/MessageHandler into the right message according to the protocol, stores authorization keys, session id and sequence number DataCenter - Handles mtproto datacenters (is a wrapper for Connection classes) diff --git a/build_docs.php b/build_docs.php index d928deb0..47406916 100755 --- a/build_docs.php +++ b/build_docs.php @@ -20,6 +20,7 @@ $TL = new \danog\MadelineProto\TL\TL([ //'mtproto' => __DIR__.'/src/danog/MadelineProto/TL_mtproto_v1.json', // mtproto TL scheme 'telegram' => __DIR__.'/src/danog/MadelineProto/TL_telegram_v57.json', // telegram TL scheme ]); +$types = []; \danog\MadelineProto\Logger::log('Copying readme...'); @@ -61,7 +62,6 @@ mkdir('methods'); $methods = []; -$types = []; \danog\MadelineProto\Logger::log('Generating methods documentation...'); foreach ($TL->methods->method as $key => $method) { @@ -70,6 +70,14 @@ foreach ($TL->methods->method as $key => $method) { $type = str_replace(['.', '<', '>'], ['_', '_of_', ''], $TL->methods->type[$key]); $real_type = preg_replace('/.*_of_/', '', $type); + if (!isset($types[$real_type])) { + $types[$real_type] = ['constructors' => [], 'methods' => []]; + } + if (!in_array($key, $types[$real_type]['methods'])) { + $types[$real_type]['methods'][] = $key; + } + + $params = ''; foreach ($TL->methods->params[$key] as $param) { if (in_array($param['name'], ['flags', 'random_id'])) { @@ -243,10 +251,10 @@ foreach ($TL->constructors->predicate as $key => $constructor) { '; if (!isset($types[$real_type])) { - $types[$real_type] = []; + $types[$real_type] = ['constructors' => [], 'methods' => []]; } - if (!in_array($key, $types[$real_type])) { - $types[$real_type][] = $key; + if (!in_array($key, $types[$real_type]['constructors'])) { + $types[$real_type]['constructors'][] = $key; } $table = empty($TL->constructors->params[$key]) ? '' : '### Attributes: @@ -352,26 +360,44 @@ foreach ($types as $type => $keys) { '; $constructors = ''; - foreach ($keys as $key) { + foreach ($keys['constructors'] as $key) { $predicate = str_replace('.', '_', $TL->constructors->predicate[$key]); $md_predicate = str_replace('_', '\_', $predicate); $constructors .= '['.$md_predicate.'](../constructors/'.$predicate.'.md) '; } + + $methods = ''; + foreach ($keys['methods'] as $key) { + $name = str_replace('.', '_', $TL->methods->method[$key]); + $md_name = str_replace('_', '->', $name); + $methods .= '[$MadelineProto->'.$md_name.'](../methods/'.$name.'.md) + +'; + } + $header = '--- title: '.$type.' -description: constructors of type '.$type.' +description: constructors and methods of type '.$type.' --- ## Type: '.str_replace('_', '\_', $type).' [Back to types index](index.md) -### Possible values (constructors): +'; + $constructors = '### Possible values (constructors): + +'.$constructors.' '; - file_put_contents('types/'.$type.'.md', $header.$constructors); + $methods = '### Methods that return an object of this type (methods): + +'.$methods.' + +'; + file_put_contents('types/'.$type.'.md', $header.$constructors.$methods); $last_namespace = $new_namespace; } @@ -469,6 +495,15 @@ description: Represents a boolean with value equal to true Represents a boolean with value equal to `true`.'); +file_put_contents('constructors/null.md', '--- +title: null +description: Represents a null value +--- +# null +[Back to constructor index](index.md) + +Represents a `null` value.'); + file_put_contents('types/Bool.md', '--- title: Bool description: Represents a boolean. diff --git a/docs/API_docs/constructors/null.md b/docs/API_docs/constructors/null.md index e09af5dd..e8f4db17 100644 --- a/docs/API_docs/constructors/null.md +++ b/docs/API_docs/constructors/null.md @@ -1,20 +1,8 @@ --- title: null -description: null attributes, type and example +description: Represents a null value --- -## Constructor: null -[Back to constructors index](index.md) +# null +[Back to constructor index](index.md) - - - - - -### Type: [Null](../types/Null.md) - - -### Example: - -``` -$null = ['_' => null', ]; -``` \ No newline at end of file +Represents a `null` value. \ No newline at end of file diff --git a/docs/API_docs/types/AccountDaysTTL.md b/docs/API_docs/types/AccountDaysTTL.md index 3f0b0842..c0363572 100644 --- a/docs/API_docs/types/AccountDaysTTL.md +++ b/docs/API_docs/types/AccountDaysTTL.md @@ -1,6 +1,6 @@ --- title: AccountDaysTTL -description: constructors of type AccountDaysTTL +description: constructors and methods of type AccountDaysTTL --- ## Type: AccountDaysTTL [Back to types index](index.md) @@ -11,3 +11,11 @@ description: constructors of type AccountDaysTTL [accountDaysTTL](../constructors/accountDaysTTL.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->account->getAccountTTL](../methods/account_getAccountTTL.md) + + + diff --git a/docs/API_docs/types/Authorization.md b/docs/API_docs/types/Authorization.md index bbff0d8e..db9d3a79 100644 --- a/docs/API_docs/types/Authorization.md +++ b/docs/API_docs/types/Authorization.md @@ -1,6 +1,6 @@ --- title: Authorization -description: constructors of type Authorization +description: constructors and methods of type Authorization --- ## Type: Authorization [Back to types index](index.md) @@ -11,3 +11,9 @@ description: constructors of type Authorization [authorization](../constructors/authorization.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/BotCommand.md b/docs/API_docs/types/BotCommand.md index b88811f6..9b5c86b1 100644 --- a/docs/API_docs/types/BotCommand.md +++ b/docs/API_docs/types/BotCommand.md @@ -1,6 +1,6 @@ --- title: BotCommand -description: constructors of type BotCommand +description: constructors and methods of type BotCommand --- ## Type: BotCommand [Back to types index](index.md) @@ -11,3 +11,9 @@ description: constructors of type BotCommand [botCommand](../constructors/botCommand.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/BotInfo.md b/docs/API_docs/types/BotInfo.md index de3db093..5a74c1ae 100644 --- a/docs/API_docs/types/BotInfo.md +++ b/docs/API_docs/types/BotInfo.md @@ -1,6 +1,6 @@ --- title: BotInfo -description: constructors of type BotInfo +description: constructors and methods of type BotInfo --- ## Type: BotInfo [Back to types index](index.md) @@ -11,3 +11,9 @@ description: constructors of type BotInfo [botInfo](../constructors/botInfo.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/BotInlineMessage.md b/docs/API_docs/types/BotInlineMessage.md index 77c162d8..3d514e86 100644 --- a/docs/API_docs/types/BotInlineMessage.md +++ b/docs/API_docs/types/BotInlineMessage.md @@ -1,6 +1,6 @@ --- title: BotInlineMessage -description: constructors of type BotInlineMessage +description: constructors and methods of type BotInlineMessage --- ## Type: BotInlineMessage [Back to types index](index.md) @@ -19,3 +19,9 @@ description: constructors of type BotInlineMessage [botInlineMessageMediaContact](../constructors/botInlineMessageMediaContact.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/BotInlineResult.md b/docs/API_docs/types/BotInlineResult.md index 217fc3ba..cbbc151b 100644 --- a/docs/API_docs/types/BotInlineResult.md +++ b/docs/API_docs/types/BotInlineResult.md @@ -1,6 +1,6 @@ --- title: BotInlineResult -description: constructors of type BotInlineResult +description: constructors and methods of type BotInlineResult --- ## Type: BotInlineResult [Back to types index](index.md) @@ -13,3 +13,9 @@ description: constructors of type BotInlineResult [botInlineMediaResult](../constructors/botInlineMediaResult.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/ChannelMessagesFilter.md b/docs/API_docs/types/ChannelMessagesFilter.md index f08d2218..099f2dcf 100644 --- a/docs/API_docs/types/ChannelMessagesFilter.md +++ b/docs/API_docs/types/ChannelMessagesFilter.md @@ -1,6 +1,6 @@ --- title: ChannelMessagesFilter -description: constructors of type ChannelMessagesFilter +description: constructors and methods of type ChannelMessagesFilter --- ## Type: ChannelMessagesFilter [Back to types index](index.md) @@ -13,3 +13,9 @@ description: constructors of type ChannelMessagesFilter [channelMessagesFilter](../constructors/channelMessagesFilter.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/ChannelParticipant.md b/docs/API_docs/types/ChannelParticipant.md index bc2e30d4..31640ae0 100644 --- a/docs/API_docs/types/ChannelParticipant.md +++ b/docs/API_docs/types/ChannelParticipant.md @@ -1,6 +1,6 @@ --- title: ChannelParticipant -description: constructors of type ChannelParticipant +description: constructors and methods of type ChannelParticipant --- ## Type: ChannelParticipant [Back to types index](index.md) @@ -21,3 +21,9 @@ description: constructors of type ChannelParticipant [channelParticipantCreator](../constructors/channelParticipantCreator.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/ChannelParticipantRole.md b/docs/API_docs/types/ChannelParticipantRole.md index 74908ed1..81bf38ec 100644 --- a/docs/API_docs/types/ChannelParticipantRole.md +++ b/docs/API_docs/types/ChannelParticipantRole.md @@ -1,6 +1,6 @@ --- title: ChannelParticipantRole -description: constructors of type ChannelParticipantRole +description: constructors and methods of type ChannelParticipantRole --- ## Type: ChannelParticipantRole [Back to types index](index.md) @@ -15,3 +15,9 @@ description: constructors of type ChannelParticipantRole [channelRoleEditor](../constructors/channelRoleEditor.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/ChannelParticipantsFilter.md b/docs/API_docs/types/ChannelParticipantsFilter.md index fb653a89..4d1e54ec 100644 --- a/docs/API_docs/types/ChannelParticipantsFilter.md +++ b/docs/API_docs/types/ChannelParticipantsFilter.md @@ -1,6 +1,6 @@ --- title: ChannelParticipantsFilter -description: constructors of type ChannelParticipantsFilter +description: constructors and methods of type ChannelParticipantsFilter --- ## Type: ChannelParticipantsFilter [Back to types index](index.md) @@ -17,3 +17,9 @@ description: constructors of type ChannelParticipantsFilter [channelParticipantsBots](../constructors/channelParticipantsBots.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/Chat.md b/docs/API_docs/types/Chat.md index 9f9587fa..1dc2c40e 100644 --- a/docs/API_docs/types/Chat.md +++ b/docs/API_docs/types/Chat.md @@ -1,6 +1,6 @@ --- title: Chat -description: constructors of type Chat +description: constructors and methods of type Chat --- ## Type: Chat [Back to types index](index.md) @@ -19,3 +19,9 @@ description: constructors of type Chat [channelForbidden](../constructors/channelForbidden.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/ChatFull.md b/docs/API_docs/types/ChatFull.md index 14f54d7d..e5ec1ffd 100644 --- a/docs/API_docs/types/ChatFull.md +++ b/docs/API_docs/types/ChatFull.md @@ -1,6 +1,6 @@ --- title: ChatFull -description: constructors of type ChatFull +description: constructors and methods of type ChatFull --- ## Type: ChatFull [Back to types index](index.md) @@ -13,3 +13,9 @@ description: constructors of type ChatFull [channelFull](../constructors/channelFull.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/ChatInvite.md b/docs/API_docs/types/ChatInvite.md index 2c796137..a8e2f3ed 100644 --- a/docs/API_docs/types/ChatInvite.md +++ b/docs/API_docs/types/ChatInvite.md @@ -1,6 +1,6 @@ --- title: ChatInvite -description: constructors of type ChatInvite +description: constructors and methods of type ChatInvite --- ## Type: ChatInvite [Back to types index](index.md) @@ -13,3 +13,11 @@ description: constructors of type ChatInvite [chatInvite](../constructors/chatInvite.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->checkChatInvite](../methods/messages_checkChatInvite.md) + + + diff --git a/docs/API_docs/types/ChatParticipant.md b/docs/API_docs/types/ChatParticipant.md index c46e06f8..64996f55 100644 --- a/docs/API_docs/types/ChatParticipant.md +++ b/docs/API_docs/types/ChatParticipant.md @@ -1,6 +1,6 @@ --- title: ChatParticipant -description: constructors of type ChatParticipant +description: constructors and methods of type ChatParticipant --- ## Type: ChatParticipant [Back to types index](index.md) @@ -15,3 +15,9 @@ description: constructors of type ChatParticipant [chatParticipantAdmin](../constructors/chatParticipantAdmin.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/ChatParticipants.md b/docs/API_docs/types/ChatParticipants.md index 059ad98a..49fca52e 100644 --- a/docs/API_docs/types/ChatParticipants.md +++ b/docs/API_docs/types/ChatParticipants.md @@ -1,6 +1,6 @@ --- title: ChatParticipants -description: constructors of type ChatParticipants +description: constructors and methods of type ChatParticipants --- ## Type: ChatParticipants [Back to types index](index.md) @@ -13,3 +13,9 @@ description: constructors of type ChatParticipants [chatParticipants](../constructors/chatParticipants.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/ChatPhoto.md b/docs/API_docs/types/ChatPhoto.md index 1b6743ef..87a20f80 100644 --- a/docs/API_docs/types/ChatPhoto.md +++ b/docs/API_docs/types/ChatPhoto.md @@ -1,6 +1,6 @@ --- title: ChatPhoto -description: constructors of type ChatPhoto +description: constructors and methods of type ChatPhoto --- ## Type: ChatPhoto [Back to types index](index.md) @@ -13,3 +13,9 @@ description: constructors of type ChatPhoto [chatPhoto](../constructors/chatPhoto.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/Config.md b/docs/API_docs/types/Config.md index fc6817ee..4c200515 100644 --- a/docs/API_docs/types/Config.md +++ b/docs/API_docs/types/Config.md @@ -1,6 +1,6 @@ --- title: Config -description: constructors of type Config +description: constructors and methods of type Config --- ## Type: Config [Back to types index](index.md) @@ -11,3 +11,11 @@ description: constructors of type Config [config](../constructors/config.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->help->getConfig](../methods/help_getConfig.md) + + + diff --git a/docs/API_docs/types/Contact.md b/docs/API_docs/types/Contact.md index b0db79e6..e8f33b6d 100644 --- a/docs/API_docs/types/Contact.md +++ b/docs/API_docs/types/Contact.md @@ -1,6 +1,6 @@ --- title: Contact -description: constructors of type Contact +description: constructors and methods of type Contact --- ## Type: Contact [Back to types index](index.md) @@ -11,3 +11,9 @@ description: constructors of type Contact [contact](../constructors/contact.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/ContactBlocked.md b/docs/API_docs/types/ContactBlocked.md index b46c63b3..87bb970c 100644 --- a/docs/API_docs/types/ContactBlocked.md +++ b/docs/API_docs/types/ContactBlocked.md @@ -1,6 +1,6 @@ --- title: ContactBlocked -description: constructors of type ContactBlocked +description: constructors and methods of type ContactBlocked --- ## Type: ContactBlocked [Back to types index](index.md) @@ -11,3 +11,9 @@ description: constructors of type ContactBlocked [contactBlocked](../constructors/contactBlocked.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/ContactLink.md b/docs/API_docs/types/ContactLink.md index 4d1f7bfa..c9a28009 100644 --- a/docs/API_docs/types/ContactLink.md +++ b/docs/API_docs/types/ContactLink.md @@ -1,6 +1,6 @@ --- title: ContactLink -description: constructors of type ContactLink +description: constructors and methods of type ContactLink --- ## Type: ContactLink [Back to types index](index.md) @@ -17,3 +17,9 @@ description: constructors of type ContactLink [contactLinkContact](../constructors/contactLinkContact.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/ContactStatus.md b/docs/API_docs/types/ContactStatus.md index b9bf9909..28257d0e 100644 --- a/docs/API_docs/types/ContactStatus.md +++ b/docs/API_docs/types/ContactStatus.md @@ -1,6 +1,6 @@ --- title: ContactStatus -description: constructors of type ContactStatus +description: constructors and methods of type ContactStatus --- ## Type: ContactStatus [Back to types index](index.md) @@ -11,3 +11,11 @@ description: constructors of type ContactStatus [contactStatus](../constructors/contactStatus.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->contacts->getStatuses](../methods/contacts_getStatuses.md) + + + diff --git a/docs/API_docs/types/DcOption.md b/docs/API_docs/types/DcOption.md index e28c623d..ac726d6d 100644 --- a/docs/API_docs/types/DcOption.md +++ b/docs/API_docs/types/DcOption.md @@ -1,6 +1,6 @@ --- title: DcOption -description: constructors of type DcOption +description: constructors and methods of type DcOption --- ## Type: DcOption [Back to types index](index.md) @@ -11,3 +11,9 @@ description: constructors of type DcOption [dcOption](../constructors/dcOption.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/Dialog.md b/docs/API_docs/types/Dialog.md index 27226290..88398fb5 100644 --- a/docs/API_docs/types/Dialog.md +++ b/docs/API_docs/types/Dialog.md @@ -1,6 +1,6 @@ --- title: Dialog -description: constructors of type Dialog +description: constructors and methods of type Dialog --- ## Type: Dialog [Back to types index](index.md) @@ -11,3 +11,9 @@ description: constructors of type Dialog [dialog](../constructors/dialog.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/DisabledFeature.md b/docs/API_docs/types/DisabledFeature.md index d5a27c8f..d1695c5b 100644 --- a/docs/API_docs/types/DisabledFeature.md +++ b/docs/API_docs/types/DisabledFeature.md @@ -1,6 +1,6 @@ --- title: DisabledFeature -description: constructors of type DisabledFeature +description: constructors and methods of type DisabledFeature --- ## Type: DisabledFeature [Back to types index](index.md) @@ -11,3 +11,9 @@ description: constructors of type DisabledFeature [disabledFeature](../constructors/disabledFeature.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/Document.md b/docs/API_docs/types/Document.md index c458a4a2..52c3c5a9 100644 --- a/docs/API_docs/types/Document.md +++ b/docs/API_docs/types/Document.md @@ -1,6 +1,6 @@ --- title: Document -description: constructors of type Document +description: constructors and methods of type Document --- ## Type: Document [Back to types index](index.md) @@ -13,3 +13,11 @@ description: constructors of type Document [document](../constructors/document.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getDocumentByHash](../methods/messages_getDocumentByHash.md) + + + diff --git a/docs/API_docs/types/DocumentAttribute.md b/docs/API_docs/types/DocumentAttribute.md index c0a8c8ab..c8e665bf 100644 --- a/docs/API_docs/types/DocumentAttribute.md +++ b/docs/API_docs/types/DocumentAttribute.md @@ -1,6 +1,6 @@ --- title: DocumentAttribute -description: constructors of type DocumentAttribute +description: constructors and methods of type DocumentAttribute --- ## Type: DocumentAttribute [Back to types index](index.md) @@ -23,3 +23,9 @@ description: constructors of type DocumentAttribute [documentAttributeHasStickers](../constructors/documentAttributeHasStickers.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/DraftMessage.md b/docs/API_docs/types/DraftMessage.md index 8d5a7683..7ef53cdb 100644 --- a/docs/API_docs/types/DraftMessage.md +++ b/docs/API_docs/types/DraftMessage.md @@ -1,6 +1,6 @@ --- title: DraftMessage -description: constructors of type DraftMessage +description: constructors and methods of type DraftMessage --- ## Type: DraftMessage [Back to types index](index.md) @@ -13,3 +13,9 @@ description: constructors of type DraftMessage [draftMessage](../constructors/draftMessage.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/EncryptedChat.md b/docs/API_docs/types/EncryptedChat.md index 5f2bd3e7..d352bfb2 100644 --- a/docs/API_docs/types/EncryptedChat.md +++ b/docs/API_docs/types/EncryptedChat.md @@ -1,6 +1,6 @@ --- title: EncryptedChat -description: constructors of type EncryptedChat +description: constructors and methods of type EncryptedChat --- ## Type: EncryptedChat [Back to types index](index.md) @@ -19,3 +19,13 @@ description: constructors of type EncryptedChat [encryptedChatDiscarded](../constructors/encryptedChatDiscarded.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->requestEncryption](../methods/messages_requestEncryption.md) + +[$MadelineProto->messages->acceptEncryption](../methods/messages_acceptEncryption.md) + + + diff --git a/docs/API_docs/types/EncryptedFile.md b/docs/API_docs/types/EncryptedFile.md index def8c878..5926c088 100644 --- a/docs/API_docs/types/EncryptedFile.md +++ b/docs/API_docs/types/EncryptedFile.md @@ -1,6 +1,6 @@ --- title: EncryptedFile -description: constructors of type EncryptedFile +description: constructors and methods of type EncryptedFile --- ## Type: EncryptedFile [Back to types index](index.md) @@ -13,3 +13,9 @@ description: constructors of type EncryptedFile [encryptedFile](../constructors/encryptedFile.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/EncryptedMessage.md b/docs/API_docs/types/EncryptedMessage.md index 383655f3..f7474a3b 100644 --- a/docs/API_docs/types/EncryptedMessage.md +++ b/docs/API_docs/types/EncryptedMessage.md @@ -1,6 +1,6 @@ --- title: EncryptedMessage -description: constructors of type EncryptedMessage +description: constructors and methods of type EncryptedMessage --- ## Type: EncryptedMessage [Back to types index](index.md) @@ -13,3 +13,9 @@ description: constructors of type EncryptedMessage [encryptedMessageService](../constructors/encryptedMessageService.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/Error.md b/docs/API_docs/types/Error.md index ef77808a..a3ab3577 100644 --- a/docs/API_docs/types/Error.md +++ b/docs/API_docs/types/Error.md @@ -1,6 +1,6 @@ --- title: Error -description: constructors of type Error +description: constructors and methods of type Error --- ## Type: Error [Back to types index](index.md) @@ -11,3 +11,9 @@ description: constructors of type Error [error](../constructors/error.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/ExportedChatInvite.md b/docs/API_docs/types/ExportedChatInvite.md index 58cea79e..60c51dfc 100644 --- a/docs/API_docs/types/ExportedChatInvite.md +++ b/docs/API_docs/types/ExportedChatInvite.md @@ -1,6 +1,6 @@ --- title: ExportedChatInvite -description: constructors of type ExportedChatInvite +description: constructors and methods of type ExportedChatInvite --- ## Type: ExportedChatInvite [Back to types index](index.md) @@ -13,3 +13,13 @@ description: constructors of type ExportedChatInvite [chatInviteExported](../constructors/chatInviteExported.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->exportChatInvite](../methods/messages_exportChatInvite.md) + +[$MadelineProto->channels->exportInvite](../methods/channels_exportInvite.md) + + + diff --git a/docs/API_docs/types/ExportedMessageLink.md b/docs/API_docs/types/ExportedMessageLink.md index 5b3e8905..6d8dbd5b 100644 --- a/docs/API_docs/types/ExportedMessageLink.md +++ b/docs/API_docs/types/ExportedMessageLink.md @@ -1,6 +1,6 @@ --- title: ExportedMessageLink -description: constructors of type ExportedMessageLink +description: constructors and methods of type ExportedMessageLink --- ## Type: ExportedMessageLink [Back to types index](index.md) @@ -11,3 +11,11 @@ description: constructors of type ExportedMessageLink [exportedMessageLink](../constructors/exportedMessageLink.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->channels->exportMessageLink](../methods/channels_exportMessageLink.md) + + + diff --git a/docs/API_docs/types/FileLocation.md b/docs/API_docs/types/FileLocation.md index 9d8467f5..09ad6ded 100644 --- a/docs/API_docs/types/FileLocation.md +++ b/docs/API_docs/types/FileLocation.md @@ -1,6 +1,6 @@ --- title: FileLocation -description: constructors of type FileLocation +description: constructors and methods of type FileLocation --- ## Type: FileLocation [Back to types index](index.md) @@ -13,3 +13,9 @@ description: constructors of type FileLocation [fileLocation](../constructors/fileLocation.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/FoundGif.md b/docs/API_docs/types/FoundGif.md index aae550b2..e366c303 100644 --- a/docs/API_docs/types/FoundGif.md +++ b/docs/API_docs/types/FoundGif.md @@ -1,6 +1,6 @@ --- title: FoundGif -description: constructors of type FoundGif +description: constructors and methods of type FoundGif --- ## Type: FoundGif [Back to types index](index.md) @@ -13,3 +13,9 @@ description: constructors of type FoundGif [foundGifCached](../constructors/foundGifCached.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/Game.md b/docs/API_docs/types/Game.md index d5b78364..80a81431 100644 --- a/docs/API_docs/types/Game.md +++ b/docs/API_docs/types/Game.md @@ -1,6 +1,6 @@ --- title: Game -description: constructors of type Game +description: constructors and methods of type Game --- ## Type: Game [Back to types index](index.md) @@ -11,3 +11,9 @@ description: constructors of type Game [game](../constructors/game.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/GeoPoint.md b/docs/API_docs/types/GeoPoint.md index d5bdf2a2..0b0b8a0b 100644 --- a/docs/API_docs/types/GeoPoint.md +++ b/docs/API_docs/types/GeoPoint.md @@ -1,6 +1,6 @@ --- title: GeoPoint -description: constructors of type GeoPoint +description: constructors and methods of type GeoPoint --- ## Type: GeoPoint [Back to types index](index.md) @@ -13,3 +13,9 @@ description: constructors of type GeoPoint [geoPoint](../constructors/geoPoint.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/HighScore.md b/docs/API_docs/types/HighScore.md index da60a990..0294d239 100644 --- a/docs/API_docs/types/HighScore.md +++ b/docs/API_docs/types/HighScore.md @@ -1,6 +1,6 @@ --- title: HighScore -description: constructors of type HighScore +description: constructors and methods of type HighScore --- ## Type: HighScore [Back to types index](index.md) @@ -11,3 +11,9 @@ description: constructors of type HighScore [highScore](../constructors/highScore.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/ImportedContact.md b/docs/API_docs/types/ImportedContact.md index d8432306..c6aca02c 100644 --- a/docs/API_docs/types/ImportedContact.md +++ b/docs/API_docs/types/ImportedContact.md @@ -1,6 +1,6 @@ --- title: ImportedContact -description: constructors of type ImportedContact +description: constructors and methods of type ImportedContact --- ## Type: ImportedContact [Back to types index](index.md) @@ -11,3 +11,9 @@ description: constructors of type ImportedContact [importedContact](../constructors/importedContact.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/InlineBotSwitchPM.md b/docs/API_docs/types/InlineBotSwitchPM.md index eedbd737..f9d4c077 100644 --- a/docs/API_docs/types/InlineBotSwitchPM.md +++ b/docs/API_docs/types/InlineBotSwitchPM.md @@ -1,6 +1,6 @@ --- title: InlineBotSwitchPM -description: constructors of type InlineBotSwitchPM +description: constructors and methods of type InlineBotSwitchPM --- ## Type: InlineBotSwitchPM [Back to types index](index.md) @@ -11,3 +11,9 @@ description: constructors of type InlineBotSwitchPM [inlineBotSwitchPM](../constructors/inlineBotSwitchPM.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/InputAppEvent.md b/docs/API_docs/types/InputAppEvent.md index eb890d39..5cacbf28 100644 --- a/docs/API_docs/types/InputAppEvent.md +++ b/docs/API_docs/types/InputAppEvent.md @@ -1,6 +1,6 @@ --- title: InputAppEvent -description: constructors of type InputAppEvent +description: constructors and methods of type InputAppEvent --- ## Type: InputAppEvent [Back to types index](index.md) @@ -11,3 +11,9 @@ description: constructors of type InputAppEvent [inputAppEvent](../constructors/inputAppEvent.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/InputBotInlineMessage.md b/docs/API_docs/types/InputBotInlineMessage.md index 375eefe6..c2592f16 100644 --- a/docs/API_docs/types/InputBotInlineMessage.md +++ b/docs/API_docs/types/InputBotInlineMessage.md @@ -1,6 +1,6 @@ --- title: InputBotInlineMessage -description: constructors of type InputBotInlineMessage +description: constructors and methods of type InputBotInlineMessage --- ## Type: InputBotInlineMessage [Back to types index](index.md) @@ -21,3 +21,9 @@ description: constructors of type InputBotInlineMessage [inputBotInlineMessageGame](../constructors/inputBotInlineMessageGame.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/InputBotInlineMessageID.md b/docs/API_docs/types/InputBotInlineMessageID.md index 8685c93e..9e5ef2e3 100644 --- a/docs/API_docs/types/InputBotInlineMessageID.md +++ b/docs/API_docs/types/InputBotInlineMessageID.md @@ -1,6 +1,6 @@ --- title: InputBotInlineMessageID -description: constructors of type InputBotInlineMessageID +description: constructors and methods of type InputBotInlineMessageID --- ## Type: InputBotInlineMessageID [Back to types index](index.md) @@ -11,3 +11,9 @@ description: constructors of type InputBotInlineMessageID [inputBotInlineMessageID](../constructors/inputBotInlineMessageID.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/InputBotInlineResult.md b/docs/API_docs/types/InputBotInlineResult.md index 4e730714..29482655 100644 --- a/docs/API_docs/types/InputBotInlineResult.md +++ b/docs/API_docs/types/InputBotInlineResult.md @@ -1,6 +1,6 @@ --- title: InputBotInlineResult -description: constructors of type InputBotInlineResult +description: constructors and methods of type InputBotInlineResult --- ## Type: InputBotInlineResult [Back to types index](index.md) @@ -17,3 +17,9 @@ description: constructors of type InputBotInlineResult [inputBotInlineResultGame](../constructors/inputBotInlineResultGame.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/InputChannel.md b/docs/API_docs/types/InputChannel.md index 7f11fb31..b573025d 100644 --- a/docs/API_docs/types/InputChannel.md +++ b/docs/API_docs/types/InputChannel.md @@ -1,6 +1,6 @@ --- title: InputChannel -description: constructors of type InputChannel +description: constructors and methods of type InputChannel --- ## Type: InputChannel [Back to types index](index.md) @@ -13,3 +13,9 @@ description: constructors of type InputChannel [inputChannel](../constructors/inputChannel.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/InputChatPhoto.md b/docs/API_docs/types/InputChatPhoto.md index 1d22bc30..02670513 100644 --- a/docs/API_docs/types/InputChatPhoto.md +++ b/docs/API_docs/types/InputChatPhoto.md @@ -1,6 +1,6 @@ --- title: InputChatPhoto -description: constructors of type InputChatPhoto +description: constructors and methods of type InputChatPhoto --- ## Type: InputChatPhoto [Back to types index](index.md) @@ -15,3 +15,9 @@ description: constructors of type InputChatPhoto [inputChatPhoto](../constructors/inputChatPhoto.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/InputContact.md b/docs/API_docs/types/InputContact.md index 0b437a4f..d02cb4a4 100644 --- a/docs/API_docs/types/InputContact.md +++ b/docs/API_docs/types/InputContact.md @@ -1,6 +1,6 @@ --- title: InputContact -description: constructors of type InputContact +description: constructors and methods of type InputContact --- ## Type: InputContact [Back to types index](index.md) @@ -11,3 +11,9 @@ description: constructors of type InputContact [inputPhoneContact](../constructors/inputPhoneContact.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/InputDocument.md b/docs/API_docs/types/InputDocument.md index 7dea8ade..ef551639 100644 --- a/docs/API_docs/types/InputDocument.md +++ b/docs/API_docs/types/InputDocument.md @@ -1,6 +1,6 @@ --- title: InputDocument -description: constructors of type InputDocument +description: constructors and methods of type InputDocument --- ## Type: InputDocument [Back to types index](index.md) @@ -13,3 +13,9 @@ description: constructors of type InputDocument [inputDocument](../constructors/inputDocument.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/InputEncryptedChat.md b/docs/API_docs/types/InputEncryptedChat.md index 36b17efb..5809c265 100644 --- a/docs/API_docs/types/InputEncryptedChat.md +++ b/docs/API_docs/types/InputEncryptedChat.md @@ -1,6 +1,6 @@ --- title: InputEncryptedChat -description: constructors of type InputEncryptedChat +description: constructors and methods of type InputEncryptedChat --- ## Type: InputEncryptedChat [Back to types index](index.md) @@ -11,3 +11,9 @@ description: constructors of type InputEncryptedChat [inputEncryptedChat](../constructors/inputEncryptedChat.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/InputEncryptedFile.md b/docs/API_docs/types/InputEncryptedFile.md index 220a299d..ef69ee82 100644 --- a/docs/API_docs/types/InputEncryptedFile.md +++ b/docs/API_docs/types/InputEncryptedFile.md @@ -1,6 +1,6 @@ --- title: InputEncryptedFile -description: constructors of type InputEncryptedFile +description: constructors and methods of type InputEncryptedFile --- ## Type: InputEncryptedFile [Back to types index](index.md) @@ -17,3 +17,9 @@ description: constructors of type InputEncryptedFile [inputEncryptedFileBigUploaded](../constructors/inputEncryptedFileBigUploaded.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/InputFile.md b/docs/API_docs/types/InputFile.md index 1de2f4cc..aa204fa9 100644 --- a/docs/API_docs/types/InputFile.md +++ b/docs/API_docs/types/InputFile.md @@ -1,6 +1,6 @@ --- title: InputFile -description: constructors of type InputFile +description: constructors and methods of type InputFile --- ## Type: InputFile [Back to types index](index.md) @@ -13,3 +13,9 @@ description: constructors of type InputFile [inputFileBig](../constructors/inputFileBig.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/InputFileLocation.md b/docs/API_docs/types/InputFileLocation.md index 9064865f..e15184d4 100644 --- a/docs/API_docs/types/InputFileLocation.md +++ b/docs/API_docs/types/InputFileLocation.md @@ -1,6 +1,6 @@ --- title: InputFileLocation -description: constructors of type InputFileLocation +description: constructors and methods of type InputFileLocation --- ## Type: InputFileLocation [Back to types index](index.md) @@ -15,3 +15,9 @@ description: constructors of type InputFileLocation [inputDocumentFileLocation](../constructors/inputDocumentFileLocation.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/InputGame.md b/docs/API_docs/types/InputGame.md index 34865312..8b48138b 100644 --- a/docs/API_docs/types/InputGame.md +++ b/docs/API_docs/types/InputGame.md @@ -1,6 +1,6 @@ --- title: InputGame -description: constructors of type InputGame +description: constructors and methods of type InputGame --- ## Type: InputGame [Back to types index](index.md) @@ -13,3 +13,9 @@ description: constructors of type InputGame [inputGameShortName](../constructors/inputGameShortName.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/InputGeoPoint.md b/docs/API_docs/types/InputGeoPoint.md index 70a7aa79..cde0c7a9 100644 --- a/docs/API_docs/types/InputGeoPoint.md +++ b/docs/API_docs/types/InputGeoPoint.md @@ -1,6 +1,6 @@ --- title: InputGeoPoint -description: constructors of type InputGeoPoint +description: constructors and methods of type InputGeoPoint --- ## Type: InputGeoPoint [Back to types index](index.md) @@ -13,3 +13,9 @@ description: constructors of type InputGeoPoint [inputGeoPoint](../constructors/inputGeoPoint.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/InputMedia.md b/docs/API_docs/types/InputMedia.md index 72f49b6d..57d4b92a 100644 --- a/docs/API_docs/types/InputMedia.md +++ b/docs/API_docs/types/InputMedia.md @@ -1,6 +1,6 @@ --- title: InputMedia -description: constructors of type InputMedia +description: constructors and methods of type InputMedia --- ## Type: InputMedia [Back to types index](index.md) @@ -35,3 +35,9 @@ description: constructors of type InputMedia [inputMediaGame](../constructors/inputMediaGame.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/InputNotifyPeer.md b/docs/API_docs/types/InputNotifyPeer.md index c5b97ff4..896c992d 100644 --- a/docs/API_docs/types/InputNotifyPeer.md +++ b/docs/API_docs/types/InputNotifyPeer.md @@ -1,6 +1,6 @@ --- title: InputNotifyPeer -description: constructors of type InputNotifyPeer +description: constructors and methods of type InputNotifyPeer --- ## Type: InputNotifyPeer [Back to types index](index.md) @@ -17,3 +17,9 @@ description: constructors of type InputNotifyPeer [inputNotifyAll](../constructors/inputNotifyAll.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/InputPeer.md b/docs/API_docs/types/InputPeer.md index ccd23b78..7adf47ab 100644 --- a/docs/API_docs/types/InputPeer.md +++ b/docs/API_docs/types/InputPeer.md @@ -1,6 +1,6 @@ --- title: InputPeer -description: constructors of type InputPeer +description: constructors and methods of type InputPeer --- ## Type: InputPeer [Back to types index](index.md) @@ -19,3 +19,9 @@ description: constructors of type InputPeer [inputPeerChannel](../constructors/inputPeerChannel.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/InputPeerNotifyEvents.md b/docs/API_docs/types/InputPeerNotifyEvents.md index d3949d3f..7ac6803e 100644 --- a/docs/API_docs/types/InputPeerNotifyEvents.md +++ b/docs/API_docs/types/InputPeerNotifyEvents.md @@ -1,6 +1,6 @@ --- title: InputPeerNotifyEvents -description: constructors of type InputPeerNotifyEvents +description: constructors and methods of type InputPeerNotifyEvents --- ## Type: InputPeerNotifyEvents [Back to types index](index.md) @@ -13,3 +13,9 @@ description: constructors of type InputPeerNotifyEvents [inputPeerNotifyEventsAll](../constructors/inputPeerNotifyEventsAll.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/InputPeerNotifySettings.md b/docs/API_docs/types/InputPeerNotifySettings.md index 1aaa26f7..49afc1f3 100644 --- a/docs/API_docs/types/InputPeerNotifySettings.md +++ b/docs/API_docs/types/InputPeerNotifySettings.md @@ -1,6 +1,6 @@ --- title: InputPeerNotifySettings -description: constructors of type InputPeerNotifySettings +description: constructors and methods of type InputPeerNotifySettings --- ## Type: InputPeerNotifySettings [Back to types index](index.md) @@ -11,3 +11,9 @@ description: constructors of type InputPeerNotifySettings [inputPeerNotifySettings](../constructors/inputPeerNotifySettings.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/InputPhoto.md b/docs/API_docs/types/InputPhoto.md index 29785df4..fa563d57 100644 --- a/docs/API_docs/types/InputPhoto.md +++ b/docs/API_docs/types/InputPhoto.md @@ -1,6 +1,6 @@ --- title: InputPhoto -description: constructors of type InputPhoto +description: constructors and methods of type InputPhoto --- ## Type: InputPhoto [Back to types index](index.md) @@ -13,3 +13,9 @@ description: constructors of type InputPhoto [inputPhoto](../constructors/inputPhoto.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/InputPrivacyKey.md b/docs/API_docs/types/InputPrivacyKey.md index 87c8d26a..b3d401e4 100644 --- a/docs/API_docs/types/InputPrivacyKey.md +++ b/docs/API_docs/types/InputPrivacyKey.md @@ -1,6 +1,6 @@ --- title: InputPrivacyKey -description: constructors of type InputPrivacyKey +description: constructors and methods of type InputPrivacyKey --- ## Type: InputPrivacyKey [Back to types index](index.md) @@ -13,3 +13,9 @@ description: constructors of type InputPrivacyKey [inputPrivacyKeyChatInvite](../constructors/inputPrivacyKeyChatInvite.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/InputPrivacyRule.md b/docs/API_docs/types/InputPrivacyRule.md index 740ecb16..55869dea 100644 --- a/docs/API_docs/types/InputPrivacyRule.md +++ b/docs/API_docs/types/InputPrivacyRule.md @@ -1,6 +1,6 @@ --- title: InputPrivacyRule -description: constructors of type InputPrivacyRule +description: constructors and methods of type InputPrivacyRule --- ## Type: InputPrivacyRule [Back to types index](index.md) @@ -21,3 +21,9 @@ description: constructors of type InputPrivacyRule [inputPrivacyValueDisallowUsers](../constructors/inputPrivacyValueDisallowUsers.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/InputStickerSet.md b/docs/API_docs/types/InputStickerSet.md index 13cb22f5..bc9abeca 100644 --- a/docs/API_docs/types/InputStickerSet.md +++ b/docs/API_docs/types/InputStickerSet.md @@ -1,6 +1,6 @@ --- title: InputStickerSet -description: constructors of type InputStickerSet +description: constructors and methods of type InputStickerSet --- ## Type: InputStickerSet [Back to types index](index.md) @@ -15,3 +15,9 @@ description: constructors of type InputStickerSet [inputStickerSetShortName](../constructors/inputStickerSetShortName.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/InputStickeredMedia.md b/docs/API_docs/types/InputStickeredMedia.md index 2862ccb9..984e7318 100644 --- a/docs/API_docs/types/InputStickeredMedia.md +++ b/docs/API_docs/types/InputStickeredMedia.md @@ -1,6 +1,6 @@ --- title: InputStickeredMedia -description: constructors of type InputStickeredMedia +description: constructors and methods of type InputStickeredMedia --- ## Type: InputStickeredMedia [Back to types index](index.md) @@ -13,3 +13,9 @@ description: constructors of type InputStickeredMedia [inputStickeredMediaDocument](../constructors/inputStickeredMediaDocument.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/InputUser.md b/docs/API_docs/types/InputUser.md index 429f7ce1..c5ced2f7 100644 --- a/docs/API_docs/types/InputUser.md +++ b/docs/API_docs/types/InputUser.md @@ -1,6 +1,6 @@ --- title: InputUser -description: constructors of type InputUser +description: constructors and methods of type InputUser --- ## Type: InputUser [Back to types index](index.md) @@ -15,3 +15,9 @@ description: constructors of type InputUser [inputUser](../constructors/inputUser.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/KeyboardButton.md b/docs/API_docs/types/KeyboardButton.md index b551dd92..9826a9b3 100644 --- a/docs/API_docs/types/KeyboardButton.md +++ b/docs/API_docs/types/KeyboardButton.md @@ -1,6 +1,6 @@ --- title: KeyboardButton -description: constructors of type KeyboardButton +description: constructors and methods of type KeyboardButton --- ## Type: KeyboardButton [Back to types index](index.md) @@ -23,3 +23,9 @@ description: constructors of type KeyboardButton [keyboardButtonGame](../constructors/keyboardButtonGame.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/KeyboardButtonRow.md b/docs/API_docs/types/KeyboardButtonRow.md index 2b3b139a..ab050e25 100644 --- a/docs/API_docs/types/KeyboardButtonRow.md +++ b/docs/API_docs/types/KeyboardButtonRow.md @@ -1,6 +1,6 @@ --- title: KeyboardButtonRow -description: constructors of type KeyboardButtonRow +description: constructors and methods of type KeyboardButtonRow --- ## Type: KeyboardButtonRow [Back to types index](index.md) @@ -11,3 +11,9 @@ description: constructors of type KeyboardButtonRow [keyboardButtonRow](../constructors/keyboardButtonRow.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/MaskCoords.md b/docs/API_docs/types/MaskCoords.md index 9b8af198..026fa2cc 100644 --- a/docs/API_docs/types/MaskCoords.md +++ b/docs/API_docs/types/MaskCoords.md @@ -1,6 +1,6 @@ --- title: MaskCoords -description: constructors of type MaskCoords +description: constructors and methods of type MaskCoords --- ## Type: MaskCoords [Back to types index](index.md) @@ -11,3 +11,9 @@ description: constructors of type MaskCoords [maskCoords](../constructors/maskCoords.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/Message.md b/docs/API_docs/types/Message.md index 915daec2..ab006ce0 100644 --- a/docs/API_docs/types/Message.md +++ b/docs/API_docs/types/Message.md @@ -1,6 +1,6 @@ --- title: Message -description: constructors of type Message +description: constructors and methods of type Message --- ## Type: Message [Back to types index](index.md) @@ -15,3 +15,9 @@ description: constructors of type Message [messageService](../constructors/messageService.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/MessageAction.md b/docs/API_docs/types/MessageAction.md index fab07bfb..ad66b137 100644 --- a/docs/API_docs/types/MessageAction.md +++ b/docs/API_docs/types/MessageAction.md @@ -1,6 +1,6 @@ --- title: MessageAction -description: constructors of type MessageAction +description: constructors and methods of type MessageAction --- ## Type: MessageAction [Back to types index](index.md) @@ -37,3 +37,9 @@ description: constructors of type MessageAction [messageActionGameScore](../constructors/messageActionGameScore.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/MessageEntity.md b/docs/API_docs/types/MessageEntity.md index d0115bd8..22f1a0b4 100644 --- a/docs/API_docs/types/MessageEntity.md +++ b/docs/API_docs/types/MessageEntity.md @@ -1,6 +1,6 @@ --- title: MessageEntity -description: constructors of type MessageEntity +description: constructors and methods of type MessageEntity --- ## Type: MessageEntity [Back to types index](index.md) @@ -35,3 +35,9 @@ description: constructors of type MessageEntity [inputMessageEntityMentionName](../constructors/inputMessageEntityMentionName.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/MessageFwdHeader.md b/docs/API_docs/types/MessageFwdHeader.md index d50baa1c..df742e47 100644 --- a/docs/API_docs/types/MessageFwdHeader.md +++ b/docs/API_docs/types/MessageFwdHeader.md @@ -1,6 +1,6 @@ --- title: MessageFwdHeader -description: constructors of type MessageFwdHeader +description: constructors and methods of type MessageFwdHeader --- ## Type: MessageFwdHeader [Back to types index](index.md) @@ -11,3 +11,9 @@ description: constructors of type MessageFwdHeader [messageFwdHeader](../constructors/messageFwdHeader.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/MessageMedia.md b/docs/API_docs/types/MessageMedia.md index 3238a3a8..2f5d294b 100644 --- a/docs/API_docs/types/MessageMedia.md +++ b/docs/API_docs/types/MessageMedia.md @@ -1,6 +1,6 @@ --- title: MessageMedia -description: constructors of type MessageMedia +description: constructors and methods of type MessageMedia --- ## Type: MessageMedia [Back to types index](index.md) @@ -27,3 +27,11 @@ description: constructors of type MessageMedia [messageMediaGame](../constructors/messageMediaGame.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getWebPagePreview](../methods/messages_getWebPagePreview.md) + + + diff --git a/docs/API_docs/types/MessageRange.md b/docs/API_docs/types/MessageRange.md index e5bb40a5..e2226ae8 100644 --- a/docs/API_docs/types/MessageRange.md +++ b/docs/API_docs/types/MessageRange.md @@ -1,6 +1,6 @@ --- title: MessageRange -description: constructors of type MessageRange +description: constructors and methods of type MessageRange --- ## Type: MessageRange [Back to types index](index.md) @@ -11,3 +11,9 @@ description: constructors of type MessageRange [messageRange](../constructors/messageRange.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/MessagesFilter.md b/docs/API_docs/types/MessagesFilter.md index dca7bca7..00bd6bda 100644 --- a/docs/API_docs/types/MessagesFilter.md +++ b/docs/API_docs/types/MessagesFilter.md @@ -1,6 +1,6 @@ --- title: MessagesFilter -description: constructors of type MessagesFilter +description: constructors and methods of type MessagesFilter --- ## Type: MessagesFilter [Back to types index](index.md) @@ -31,3 +31,9 @@ description: constructors of type MessagesFilter [inputMessagesFilterChatPhotos](../constructors/inputMessagesFilterChatPhotos.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/NearestDc.md b/docs/API_docs/types/NearestDc.md index 8d4d99e6..5068710d 100644 --- a/docs/API_docs/types/NearestDc.md +++ b/docs/API_docs/types/NearestDc.md @@ -1,6 +1,6 @@ --- title: NearestDc -description: constructors of type NearestDc +description: constructors and methods of type NearestDc --- ## Type: NearestDc [Back to types index](index.md) @@ -11,3 +11,11 @@ description: constructors of type NearestDc [nearestDc](../constructors/nearestDc.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->help->getNearestDc](../methods/help_getNearestDc.md) + + + diff --git a/docs/API_docs/types/NotifyPeer.md b/docs/API_docs/types/NotifyPeer.md index 3a4de7b4..c9a5b684 100644 --- a/docs/API_docs/types/NotifyPeer.md +++ b/docs/API_docs/types/NotifyPeer.md @@ -1,6 +1,6 @@ --- title: NotifyPeer -description: constructors of type NotifyPeer +description: constructors and methods of type NotifyPeer --- ## Type: NotifyPeer [Back to types index](index.md) @@ -17,3 +17,9 @@ description: constructors of type NotifyPeer [notifyAll](../constructors/notifyAll.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/Null.md b/docs/API_docs/types/Null.md index d7125956..64470311 100644 --- a/docs/API_docs/types/Null.md +++ b/docs/API_docs/types/Null.md @@ -1,6 +1,6 @@ --- title: Null -description: constructors of type Null +description: constructors and methods of type Null --- ## Type: Null [Back to types index](index.md) @@ -11,3 +11,9 @@ description: constructors of type Null [null](../constructors/null.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/Peer.md b/docs/API_docs/types/Peer.md index 83c11115..d4aa8884 100644 --- a/docs/API_docs/types/Peer.md +++ b/docs/API_docs/types/Peer.md @@ -1,6 +1,6 @@ --- title: Peer -description: constructors of type Peer +description: constructors and methods of type Peer --- ## Type: Peer [Back to types index](index.md) @@ -15,3 +15,9 @@ description: constructors of type Peer [peerChannel](../constructors/peerChannel.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/PeerNotifyEvents.md b/docs/API_docs/types/PeerNotifyEvents.md index 00276d70..4c70898a 100644 --- a/docs/API_docs/types/PeerNotifyEvents.md +++ b/docs/API_docs/types/PeerNotifyEvents.md @@ -1,6 +1,6 @@ --- title: PeerNotifyEvents -description: constructors of type PeerNotifyEvents +description: constructors and methods of type PeerNotifyEvents --- ## Type: PeerNotifyEvents [Back to types index](index.md) @@ -13,3 +13,9 @@ description: constructors of type PeerNotifyEvents [peerNotifyEventsAll](../constructors/peerNotifyEventsAll.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/PeerNotifySettings.md b/docs/API_docs/types/PeerNotifySettings.md index 816b4ee9..65db3e5b 100644 --- a/docs/API_docs/types/PeerNotifySettings.md +++ b/docs/API_docs/types/PeerNotifySettings.md @@ -1,6 +1,6 @@ --- title: PeerNotifySettings -description: constructors of type PeerNotifySettings +description: constructors and methods of type PeerNotifySettings --- ## Type: PeerNotifySettings [Back to types index](index.md) @@ -13,3 +13,11 @@ description: constructors of type PeerNotifySettings [peerNotifySettings](../constructors/peerNotifySettings.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->account->getNotifySettings](../methods/account_getNotifySettings.md) + + + diff --git a/docs/API_docs/types/PeerSettings.md b/docs/API_docs/types/PeerSettings.md index 5f85e326..b08909e8 100644 --- a/docs/API_docs/types/PeerSettings.md +++ b/docs/API_docs/types/PeerSettings.md @@ -1,6 +1,6 @@ --- title: PeerSettings -description: constructors of type PeerSettings +description: constructors and methods of type PeerSettings --- ## Type: PeerSettings [Back to types index](index.md) @@ -11,3 +11,11 @@ description: constructors of type PeerSettings [peerSettings](../constructors/peerSettings.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getPeerSettings](../methods/messages_getPeerSettings.md) + + + diff --git a/docs/API_docs/types/Photo.md b/docs/API_docs/types/Photo.md index abd556b0..40ee0717 100644 --- a/docs/API_docs/types/Photo.md +++ b/docs/API_docs/types/Photo.md @@ -1,6 +1,6 @@ --- title: Photo -description: constructors of type Photo +description: constructors and methods of type Photo --- ## Type: Photo [Back to types index](index.md) @@ -13,3 +13,9 @@ description: constructors of type Photo [photo](../constructors/photo.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/PhotoSize.md b/docs/API_docs/types/PhotoSize.md index 78257249..c62ec0ae 100644 --- a/docs/API_docs/types/PhotoSize.md +++ b/docs/API_docs/types/PhotoSize.md @@ -1,6 +1,6 @@ --- title: PhotoSize -description: constructors of type PhotoSize +description: constructors and methods of type PhotoSize --- ## Type: PhotoSize [Back to types index](index.md) @@ -15,3 +15,9 @@ description: constructors of type PhotoSize [photoCachedSize](../constructors/photoCachedSize.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/PrivacyKey.md b/docs/API_docs/types/PrivacyKey.md index 348de456..e0c366bf 100644 --- a/docs/API_docs/types/PrivacyKey.md +++ b/docs/API_docs/types/PrivacyKey.md @@ -1,6 +1,6 @@ --- title: PrivacyKey -description: constructors of type PrivacyKey +description: constructors and methods of type PrivacyKey --- ## Type: PrivacyKey [Back to types index](index.md) @@ -13,3 +13,9 @@ description: constructors of type PrivacyKey [privacyKeyChatInvite](../constructors/privacyKeyChatInvite.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/PrivacyRule.md b/docs/API_docs/types/PrivacyRule.md index af77b069..39554bf1 100644 --- a/docs/API_docs/types/PrivacyRule.md +++ b/docs/API_docs/types/PrivacyRule.md @@ -1,6 +1,6 @@ --- title: PrivacyRule -description: constructors of type PrivacyRule +description: constructors and methods of type PrivacyRule --- ## Type: PrivacyRule [Back to types index](index.md) @@ -21,3 +21,9 @@ description: constructors of type PrivacyRule [privacyValueDisallowUsers](../constructors/privacyValueDisallowUsers.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/ReceivedNotifyMessage.md b/docs/API_docs/types/ReceivedNotifyMessage.md index 4b1f2bcc..e403f2ab 100644 --- a/docs/API_docs/types/ReceivedNotifyMessage.md +++ b/docs/API_docs/types/ReceivedNotifyMessage.md @@ -1,6 +1,6 @@ --- title: ReceivedNotifyMessage -description: constructors of type ReceivedNotifyMessage +description: constructors and methods of type ReceivedNotifyMessage --- ## Type: ReceivedNotifyMessage [Back to types index](index.md) @@ -11,3 +11,11 @@ description: constructors of type ReceivedNotifyMessage [receivedNotifyMessage](../constructors/receivedNotifyMessage.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->receivedMessages](../methods/messages_receivedMessages.md) + + + diff --git a/docs/API_docs/types/ReplyMarkup.md b/docs/API_docs/types/ReplyMarkup.md index 70273d34..6e4d41bc 100644 --- a/docs/API_docs/types/ReplyMarkup.md +++ b/docs/API_docs/types/ReplyMarkup.md @@ -1,6 +1,6 @@ --- title: ReplyMarkup -description: constructors of type ReplyMarkup +description: constructors and methods of type ReplyMarkup --- ## Type: ReplyMarkup [Back to types index](index.md) @@ -17,3 +17,9 @@ description: constructors of type ReplyMarkup [replyInlineMarkup](../constructors/replyInlineMarkup.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/ReportReason.md b/docs/API_docs/types/ReportReason.md index a95c9f2b..d04f6e1d 100644 --- a/docs/API_docs/types/ReportReason.md +++ b/docs/API_docs/types/ReportReason.md @@ -1,6 +1,6 @@ --- title: ReportReason -description: constructors of type ReportReason +description: constructors and methods of type ReportReason --- ## Type: ReportReason [Back to types index](index.md) @@ -17,3 +17,9 @@ description: constructors of type ReportReason [inputReportReasonOther](../constructors/inputReportReasonOther.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/SendMessageAction.md b/docs/API_docs/types/SendMessageAction.md index 444f1c40..faa6a8ff 100644 --- a/docs/API_docs/types/SendMessageAction.md +++ b/docs/API_docs/types/SendMessageAction.md @@ -1,6 +1,6 @@ --- title: SendMessageAction -description: constructors of type SendMessageAction +description: constructors and methods of type SendMessageAction --- ## Type: SendMessageAction [Back to types index](index.md) @@ -31,3 +31,9 @@ description: constructors of type SendMessageAction [sendMessageGamePlayAction](../constructors/sendMessageGamePlayAction.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/StickerPack.md b/docs/API_docs/types/StickerPack.md index 90a57d37..18879439 100644 --- a/docs/API_docs/types/StickerPack.md +++ b/docs/API_docs/types/StickerPack.md @@ -1,6 +1,6 @@ --- title: StickerPack -description: constructors of type StickerPack +description: constructors and methods of type StickerPack --- ## Type: StickerPack [Back to types index](index.md) @@ -11,3 +11,9 @@ description: constructors of type StickerPack [stickerPack](../constructors/stickerPack.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/StickerSet.md b/docs/API_docs/types/StickerSet.md index 310fb578..01141ecd 100644 --- a/docs/API_docs/types/StickerSet.md +++ b/docs/API_docs/types/StickerSet.md @@ -1,6 +1,6 @@ --- title: StickerSet -description: constructors of type StickerSet +description: constructors and methods of type StickerSet --- ## Type: StickerSet [Back to types index](index.md) @@ -11,3 +11,9 @@ description: constructors of type StickerSet [stickerSet](../constructors/stickerSet.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/StickerSetCovered.md b/docs/API_docs/types/StickerSetCovered.md index 655c7605..ef955281 100644 --- a/docs/API_docs/types/StickerSetCovered.md +++ b/docs/API_docs/types/StickerSetCovered.md @@ -1,6 +1,6 @@ --- title: StickerSetCovered -description: constructors of type StickerSetCovered +description: constructors and methods of type StickerSetCovered --- ## Type: StickerSetCovered [Back to types index](index.md) @@ -13,3 +13,11 @@ description: constructors of type StickerSetCovered [stickerSetMultiCovered](../constructors/stickerSetMultiCovered.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getAttachedStickers](../methods/messages_getAttachedStickers.md) + + + diff --git a/docs/API_docs/types/TopPeer.md b/docs/API_docs/types/TopPeer.md index f59b5610..a9334990 100644 --- a/docs/API_docs/types/TopPeer.md +++ b/docs/API_docs/types/TopPeer.md @@ -1,6 +1,6 @@ --- title: TopPeer -description: constructors of type TopPeer +description: constructors and methods of type TopPeer --- ## Type: TopPeer [Back to types index](index.md) @@ -11,3 +11,9 @@ description: constructors of type TopPeer [topPeer](../constructors/topPeer.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/TopPeerCategory.md b/docs/API_docs/types/TopPeerCategory.md index f1b65f6f..5ada15d4 100644 --- a/docs/API_docs/types/TopPeerCategory.md +++ b/docs/API_docs/types/TopPeerCategory.md @@ -1,6 +1,6 @@ --- title: TopPeerCategory -description: constructors of type TopPeerCategory +description: constructors and methods of type TopPeerCategory --- ## Type: TopPeerCategory [Back to types index](index.md) @@ -19,3 +19,9 @@ description: constructors of type TopPeerCategory [topPeerCategoryChannels](../constructors/topPeerCategoryChannels.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/TopPeerCategoryPeers.md b/docs/API_docs/types/TopPeerCategoryPeers.md index ee4f9b29..ad56620b 100644 --- a/docs/API_docs/types/TopPeerCategoryPeers.md +++ b/docs/API_docs/types/TopPeerCategoryPeers.md @@ -1,6 +1,6 @@ --- title: TopPeerCategoryPeers -description: constructors of type TopPeerCategoryPeers +description: constructors and methods of type TopPeerCategoryPeers --- ## Type: TopPeerCategoryPeers [Back to types index](index.md) @@ -11,3 +11,9 @@ description: constructors of type TopPeerCategoryPeers [topPeerCategoryPeers](../constructors/topPeerCategoryPeers.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/True.md b/docs/API_docs/types/True.md index 99029819..4d93e161 100644 --- a/docs/API_docs/types/True.md +++ b/docs/API_docs/types/True.md @@ -1,6 +1,6 @@ --- title: True -description: constructors of type True +description: constructors and methods of type True --- ## Type: True [Back to types index](index.md) @@ -11,3 +11,9 @@ description: constructors of type True [true](../constructors/true.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/Update.md b/docs/API_docs/types/Update.md index 684e77a5..dec5945c 100644 --- a/docs/API_docs/types/Update.md +++ b/docs/API_docs/types/Update.md @@ -1,6 +1,6 @@ --- title: Update -description: constructors of type Update +description: constructors and methods of type Update --- ## Type: Update [Back to types index](index.md) @@ -115,3 +115,9 @@ description: constructors of type Update [updatePtsChanged](../constructors/updatePtsChanged.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/Updates.md b/docs/API_docs/types/Updates.md index 707eface..09da0119 100644 --- a/docs/API_docs/types/Updates.md +++ b/docs/API_docs/types/Updates.md @@ -1,6 +1,6 @@ --- title: Updates -description: constructors of type Updates +description: constructors and methods of type Updates --- ## Type: Updates [Back to types index](index.md) @@ -23,3 +23,67 @@ description: constructors of type Updates [updateShortSentMessage](../constructors/updateShortSentMessage.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->sendMessage](../methods/messages_sendMessage.md) + +[$MadelineProto->messages->sendMedia](../methods/messages_sendMedia.md) + +[$MadelineProto->messages->forwardMessages](../methods/messages_forwardMessages.md) + +[$MadelineProto->messages->editChatTitle](../methods/messages_editChatTitle.md) + +[$MadelineProto->messages->editChatPhoto](../methods/messages_editChatPhoto.md) + +[$MadelineProto->messages->addChatUser](../methods/messages_addChatUser.md) + +[$MadelineProto->messages->deleteChatUser](../methods/messages_deleteChatUser.md) + +[$MadelineProto->messages->createChat](../methods/messages_createChat.md) + +[$MadelineProto->messages->forwardMessage](../methods/messages_forwardMessage.md) + +[$MadelineProto->messages->importChatInvite](../methods/messages_importChatInvite.md) + +[$MadelineProto->messages->startBot](../methods/messages_startBot.md) + +[$MadelineProto->channels->createChannel](../methods/channels_createChannel.md) + +[$MadelineProto->channels->editAdmin](../methods/channels_editAdmin.md) + +[$MadelineProto->channels->editTitle](../methods/channels_editTitle.md) + +[$MadelineProto->channels->editPhoto](../methods/channels_editPhoto.md) + +[$MadelineProto->channels->joinChannel](../methods/channels_joinChannel.md) + +[$MadelineProto->channels->leaveChannel](../methods/channels_leaveChannel.md) + +[$MadelineProto->channels->inviteToChannel](../methods/channels_inviteToChannel.md) + +[$MadelineProto->channels->kickFromChannel](../methods/channels_kickFromChannel.md) + +[$MadelineProto->channels->deleteChannel](../methods/channels_deleteChannel.md) + +[$MadelineProto->messages->toggleChatAdmins](../methods/messages_toggleChatAdmins.md) + +[$MadelineProto->messages->migrateChat](../methods/messages_migrateChat.md) + +[$MadelineProto->messages->sendInlineBotResult](../methods/messages_sendInlineBotResult.md) + +[$MadelineProto->channels->toggleInvites](../methods/channels_toggleInvites.md) + +[$MadelineProto->channels->toggleSignatures](../methods/channels_toggleSignatures.md) + +[$MadelineProto->channels->updatePinnedMessage](../methods/channels_updatePinnedMessage.md) + +[$MadelineProto->messages->editMessage](../methods/messages_editMessage.md) + +[$MadelineProto->messages->getAllDrafts](../methods/messages_getAllDrafts.md) + +[$MadelineProto->messages->setGameScore](../methods/messages_setGameScore.md) + + + diff --git a/docs/API_docs/types/User.md b/docs/API_docs/types/User.md index db579ada..63494937 100644 --- a/docs/API_docs/types/User.md +++ b/docs/API_docs/types/User.md @@ -1,6 +1,6 @@ --- title: User -description: constructors of type User +description: constructors and methods of type User --- ## Type: User [Back to types index](index.md) @@ -13,3 +13,19 @@ description: constructors of type User [user](../constructors/user.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->account->updateProfile](../methods/account_updateProfile.md) + +[$MadelineProto->users->getUsers](../methods/users_getUsers.md) + +[$MadelineProto->contacts->importCard](../methods/contacts_importCard.md) + +[$MadelineProto->account->updateUsername](../methods/account_updateUsername.md) + +[$MadelineProto->account->changePhone](../methods/account_changePhone.md) + + + diff --git a/docs/API_docs/types/UserFull.md b/docs/API_docs/types/UserFull.md index 3c98fd01..6a761784 100644 --- a/docs/API_docs/types/UserFull.md +++ b/docs/API_docs/types/UserFull.md @@ -1,6 +1,6 @@ --- title: UserFull -description: constructors of type UserFull +description: constructors and methods of type UserFull --- ## Type: UserFull [Back to types index](index.md) @@ -11,3 +11,11 @@ description: constructors of type UserFull [userFull](../constructors/userFull.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->users->getFullUser](../methods/users_getFullUser.md) + + + diff --git a/docs/API_docs/types/UserProfilePhoto.md b/docs/API_docs/types/UserProfilePhoto.md index 49304310..62eb560c 100644 --- a/docs/API_docs/types/UserProfilePhoto.md +++ b/docs/API_docs/types/UserProfilePhoto.md @@ -1,6 +1,6 @@ --- title: UserProfilePhoto -description: constructors of type UserProfilePhoto +description: constructors and methods of type UserProfilePhoto --- ## Type: UserProfilePhoto [Back to types index](index.md) @@ -13,3 +13,11 @@ description: constructors of type UserProfilePhoto [userProfilePhoto](../constructors/userProfilePhoto.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->photos->updateProfilePhoto](../methods/photos_updateProfilePhoto.md) + + + diff --git a/docs/API_docs/types/UserStatus.md b/docs/API_docs/types/UserStatus.md index 9c2c19e5..87eeb5d0 100644 --- a/docs/API_docs/types/UserStatus.md +++ b/docs/API_docs/types/UserStatus.md @@ -1,6 +1,6 @@ --- title: UserStatus -description: constructors of type UserStatus +description: constructors and methods of type UserStatus --- ## Type: UserStatus [Back to types index](index.md) @@ -21,3 +21,9 @@ description: constructors of type UserStatus [userStatusLastMonth](../constructors/userStatusLastMonth.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/Vector t.md b/docs/API_docs/types/Vector t.md index a997e69c..06b943f9 100644 --- a/docs/API_docs/types/Vector t.md +++ b/docs/API_docs/types/Vector t.md @@ -1,6 +1,6 @@ --- title: Vector t -description: constructors of type Vector t +description: constructors and methods of type Vector t --- ## Type: Vector t [Back to types index](index.md) @@ -11,3 +11,9 @@ description: constructors of type Vector t [vector](../constructors/vector.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/WallPaper.md b/docs/API_docs/types/WallPaper.md index 4fe889b9..f213b9d5 100644 --- a/docs/API_docs/types/WallPaper.md +++ b/docs/API_docs/types/WallPaper.md @@ -1,6 +1,6 @@ --- title: WallPaper -description: constructors of type WallPaper +description: constructors and methods of type WallPaper --- ## Type: WallPaper [Back to types index](index.md) @@ -13,3 +13,11 @@ description: constructors of type WallPaper [wallPaperSolid](../constructors/wallPaperSolid.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->account->getWallPapers](../methods/account_getWallPapers.md) + + + diff --git a/docs/API_docs/types/WebPage.md b/docs/API_docs/types/WebPage.md index 83126065..46f8418d 100644 --- a/docs/API_docs/types/WebPage.md +++ b/docs/API_docs/types/WebPage.md @@ -1,6 +1,6 @@ --- title: WebPage -description: constructors of type WebPage +description: constructors and methods of type WebPage --- ## Type: WebPage [Back to types index](index.md) @@ -15,3 +15,9 @@ description: constructors of type WebPage [webPage](../constructors/webPage.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/account_Authorizations.md b/docs/API_docs/types/account_Authorizations.md index a3444535..b3b3cfb8 100644 --- a/docs/API_docs/types/account_Authorizations.md +++ b/docs/API_docs/types/account_Authorizations.md @@ -1,6 +1,6 @@ --- title: account_Authorizations -description: constructors of type account_Authorizations +description: constructors and methods of type account_Authorizations --- ## Type: account\_Authorizations [Back to types index](index.md) @@ -11,3 +11,11 @@ description: constructors of type account_Authorizations [account\_authorizations](../constructors/account_authorizations.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->account->getAuthorizations](../methods/account_getAuthorizations.md) + + + diff --git a/docs/API_docs/types/account_Password.md b/docs/API_docs/types/account_Password.md index 496bcdde..9b97c70e 100644 --- a/docs/API_docs/types/account_Password.md +++ b/docs/API_docs/types/account_Password.md @@ -1,6 +1,6 @@ --- title: account_Password -description: constructors of type account_Password +description: constructors and methods of type account_Password --- ## Type: account\_Password [Back to types index](index.md) @@ -13,3 +13,11 @@ description: constructors of type account_Password [account\_password](../constructors/account_password.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->account->getPassword](../methods/account_getPassword.md) + + + diff --git a/docs/API_docs/types/account_PasswordInputSettings.md b/docs/API_docs/types/account_PasswordInputSettings.md index 931ac450..9e93a2a7 100644 --- a/docs/API_docs/types/account_PasswordInputSettings.md +++ b/docs/API_docs/types/account_PasswordInputSettings.md @@ -1,6 +1,6 @@ --- title: account_PasswordInputSettings -description: constructors of type account_PasswordInputSettings +description: constructors and methods of type account_PasswordInputSettings --- ## Type: account\_PasswordInputSettings [Back to types index](index.md) @@ -11,3 +11,9 @@ description: constructors of type account_PasswordInputSettings [account\_passwordInputSettings](../constructors/account_passwordInputSettings.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/account_PasswordSettings.md b/docs/API_docs/types/account_PasswordSettings.md index 15e32521..cc76f319 100644 --- a/docs/API_docs/types/account_PasswordSettings.md +++ b/docs/API_docs/types/account_PasswordSettings.md @@ -1,6 +1,6 @@ --- title: account_PasswordSettings -description: constructors of type account_PasswordSettings +description: constructors and methods of type account_PasswordSettings --- ## Type: account\_PasswordSettings [Back to types index](index.md) @@ -11,3 +11,11 @@ description: constructors of type account_PasswordSettings [account\_passwordSettings](../constructors/account_passwordSettings.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->account->getPasswordSettings](../methods/account_getPasswordSettings.md) + + + diff --git a/docs/API_docs/types/account_PrivacyRules.md b/docs/API_docs/types/account_PrivacyRules.md index f6141ea3..195a8719 100644 --- a/docs/API_docs/types/account_PrivacyRules.md +++ b/docs/API_docs/types/account_PrivacyRules.md @@ -1,6 +1,6 @@ --- title: account_PrivacyRules -description: constructors of type account_PrivacyRules +description: constructors and methods of type account_PrivacyRules --- ## Type: account\_PrivacyRules [Back to types index](index.md) @@ -11,3 +11,13 @@ description: constructors of type account_PrivacyRules [account\_privacyRules](../constructors/account_privacyRules.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->account->getPrivacy](../methods/account_getPrivacy.md) + +[$MadelineProto->account->setPrivacy](../methods/account_setPrivacy.md) + + + diff --git a/docs/API_docs/types/auth_Authorization.md b/docs/API_docs/types/auth_Authorization.md index e43db5a4..5f188c84 100644 --- a/docs/API_docs/types/auth_Authorization.md +++ b/docs/API_docs/types/auth_Authorization.md @@ -1,6 +1,6 @@ --- title: auth_Authorization -description: constructors of type auth_Authorization +description: constructors and methods of type auth_Authorization --- ## Type: auth\_Authorization [Back to types index](index.md) @@ -11,3 +11,21 @@ description: constructors of type auth_Authorization [auth\_authorization](../constructors/auth_authorization.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->auth->signUp](../methods/auth_signUp.md) + +[$MadelineProto->auth->signIn](../methods/auth_signIn.md) + +[$MadelineProto->auth->importAuthorization](../methods/auth_importAuthorization.md) + +[$MadelineProto->auth->importBotAuthorization](../methods/auth_importBotAuthorization.md) + +[$MadelineProto->auth->checkPassword](../methods/auth_checkPassword.md) + +[$MadelineProto->auth->recoverPassword](../methods/auth_recoverPassword.md) + + + diff --git a/docs/API_docs/types/auth_CheckedPhone.md b/docs/API_docs/types/auth_CheckedPhone.md index 16dd18ef..350d64e9 100644 --- a/docs/API_docs/types/auth_CheckedPhone.md +++ b/docs/API_docs/types/auth_CheckedPhone.md @@ -1,6 +1,6 @@ --- title: auth_CheckedPhone -description: constructors of type auth_CheckedPhone +description: constructors and methods of type auth_CheckedPhone --- ## Type: auth\_CheckedPhone [Back to types index](index.md) @@ -11,3 +11,11 @@ description: constructors of type auth_CheckedPhone [auth\_checkedPhone](../constructors/auth_checkedPhone.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->auth->checkPhone](../methods/auth_checkPhone.md) + + + diff --git a/docs/API_docs/types/auth_CodeType.md b/docs/API_docs/types/auth_CodeType.md index 83afdcb5..34bffaa7 100644 --- a/docs/API_docs/types/auth_CodeType.md +++ b/docs/API_docs/types/auth_CodeType.md @@ -1,6 +1,6 @@ --- title: auth_CodeType -description: constructors of type auth_CodeType +description: constructors and methods of type auth_CodeType --- ## Type: auth\_CodeType [Back to types index](index.md) @@ -15,3 +15,9 @@ description: constructors of type auth_CodeType [auth\_codeTypeFlashCall](../constructors/auth_codeTypeFlashCall.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/auth_ExportedAuthorization.md b/docs/API_docs/types/auth_ExportedAuthorization.md index 88613054..83c8dc5e 100644 --- a/docs/API_docs/types/auth_ExportedAuthorization.md +++ b/docs/API_docs/types/auth_ExportedAuthorization.md @@ -1,6 +1,6 @@ --- title: auth_ExportedAuthorization -description: constructors of type auth_ExportedAuthorization +description: constructors and methods of type auth_ExportedAuthorization --- ## Type: auth\_ExportedAuthorization [Back to types index](index.md) @@ -11,3 +11,11 @@ description: constructors of type auth_ExportedAuthorization [auth\_exportedAuthorization](../constructors/auth_exportedAuthorization.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->auth->exportAuthorization](../methods/auth_exportAuthorization.md) + + + diff --git a/docs/API_docs/types/auth_PasswordRecovery.md b/docs/API_docs/types/auth_PasswordRecovery.md index d2eb12fa..2a453cb9 100644 --- a/docs/API_docs/types/auth_PasswordRecovery.md +++ b/docs/API_docs/types/auth_PasswordRecovery.md @@ -1,6 +1,6 @@ --- title: auth_PasswordRecovery -description: constructors of type auth_PasswordRecovery +description: constructors and methods of type auth_PasswordRecovery --- ## Type: auth\_PasswordRecovery [Back to types index](index.md) @@ -11,3 +11,11 @@ description: constructors of type auth_PasswordRecovery [auth\_passwordRecovery](../constructors/auth_passwordRecovery.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->auth->requestPasswordRecovery](../methods/auth_requestPasswordRecovery.md) + + + diff --git a/docs/API_docs/types/auth_SentCode.md b/docs/API_docs/types/auth_SentCode.md index f3879613..d5b414f7 100644 --- a/docs/API_docs/types/auth_SentCode.md +++ b/docs/API_docs/types/auth_SentCode.md @@ -1,6 +1,6 @@ --- title: auth_SentCode -description: constructors of type auth_SentCode +description: constructors and methods of type auth_SentCode --- ## Type: auth\_SentCode [Back to types index](index.md) @@ -11,3 +11,17 @@ description: constructors of type auth_SentCode [auth\_sentCode](../constructors/auth_sentCode.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->auth->sendCode](../methods/auth_sendCode.md) + +[$MadelineProto->account->sendChangePhoneCode](../methods/account_sendChangePhoneCode.md) + +[$MadelineProto->auth->resendCode](../methods/auth_resendCode.md) + +[$MadelineProto->account->sendConfirmPhoneCode](../methods/account_sendConfirmPhoneCode.md) + + + diff --git a/docs/API_docs/types/auth_SentCodeType.md b/docs/API_docs/types/auth_SentCodeType.md index 0ef060c5..d86eaa86 100644 --- a/docs/API_docs/types/auth_SentCodeType.md +++ b/docs/API_docs/types/auth_SentCodeType.md @@ -1,6 +1,6 @@ --- title: auth_SentCodeType -description: constructors of type auth_SentCodeType +description: constructors and methods of type auth_SentCodeType --- ## Type: auth\_SentCodeType [Back to types index](index.md) @@ -17,3 +17,9 @@ description: constructors of type auth_SentCodeType [auth\_sentCodeTypeFlashCall](../constructors/auth_sentCodeTypeFlashCall.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/channels_ChannelParticipant.md b/docs/API_docs/types/channels_ChannelParticipant.md index 71868e26..eee6bded 100644 --- a/docs/API_docs/types/channels_ChannelParticipant.md +++ b/docs/API_docs/types/channels_ChannelParticipant.md @@ -1,6 +1,6 @@ --- title: channels_ChannelParticipant -description: constructors of type channels_ChannelParticipant +description: constructors and methods of type channels_ChannelParticipant --- ## Type: channels\_ChannelParticipant [Back to types index](index.md) @@ -11,3 +11,11 @@ description: constructors of type channels_ChannelParticipant [channels\_channelParticipant](../constructors/channels_channelParticipant.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->channels->getParticipant](../methods/channels_getParticipant.md) + + + diff --git a/docs/API_docs/types/channels_ChannelParticipants.md b/docs/API_docs/types/channels_ChannelParticipants.md index 191d8a4f..c5104b22 100644 --- a/docs/API_docs/types/channels_ChannelParticipants.md +++ b/docs/API_docs/types/channels_ChannelParticipants.md @@ -1,6 +1,6 @@ --- title: channels_ChannelParticipants -description: constructors of type channels_ChannelParticipants +description: constructors and methods of type channels_ChannelParticipants --- ## Type: channels\_ChannelParticipants [Back to types index](index.md) @@ -11,3 +11,11 @@ description: constructors of type channels_ChannelParticipants [channels\_channelParticipants](../constructors/channels_channelParticipants.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->channels->getParticipants](../methods/channels_getParticipants.md) + + + diff --git a/docs/API_docs/types/contacts_Blocked.md b/docs/API_docs/types/contacts_Blocked.md index e4e68ba5..d1c4bad6 100644 --- a/docs/API_docs/types/contacts_Blocked.md +++ b/docs/API_docs/types/contacts_Blocked.md @@ -1,6 +1,6 @@ --- title: contacts_Blocked -description: constructors of type contacts_Blocked +description: constructors and methods of type contacts_Blocked --- ## Type: contacts\_Blocked [Back to types index](index.md) @@ -13,3 +13,11 @@ description: constructors of type contacts_Blocked [contacts\_blockedSlice](../constructors/contacts_blockedSlice.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->contacts->getBlocked](../methods/contacts_getBlocked.md) + + + diff --git a/docs/API_docs/types/contacts_Contacts.md b/docs/API_docs/types/contacts_Contacts.md index 183c8b0e..cc08280b 100644 --- a/docs/API_docs/types/contacts_Contacts.md +++ b/docs/API_docs/types/contacts_Contacts.md @@ -1,6 +1,6 @@ --- title: contacts_Contacts -description: constructors of type contacts_Contacts +description: constructors and methods of type contacts_Contacts --- ## Type: contacts\_Contacts [Back to types index](index.md) @@ -13,3 +13,11 @@ description: constructors of type contacts_Contacts [contacts\_contacts](../constructors/contacts_contacts.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->contacts->getContacts](../methods/contacts_getContacts.md) + + + diff --git a/docs/API_docs/types/contacts_Found.md b/docs/API_docs/types/contacts_Found.md index 85ca799d..4ff40d5d 100644 --- a/docs/API_docs/types/contacts_Found.md +++ b/docs/API_docs/types/contacts_Found.md @@ -1,6 +1,6 @@ --- title: contacts_Found -description: constructors of type contacts_Found +description: constructors and methods of type contacts_Found --- ## Type: contacts\_Found [Back to types index](index.md) @@ -11,3 +11,11 @@ description: constructors of type contacts_Found [contacts\_found](../constructors/contacts_found.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->contacts->search](../methods/contacts_search.md) + + + diff --git a/docs/API_docs/types/contacts_ImportedContacts.md b/docs/API_docs/types/contacts_ImportedContacts.md index 301f65cf..4fb75b51 100644 --- a/docs/API_docs/types/contacts_ImportedContacts.md +++ b/docs/API_docs/types/contacts_ImportedContacts.md @@ -1,6 +1,6 @@ --- title: contacts_ImportedContacts -description: constructors of type contacts_ImportedContacts +description: constructors and methods of type contacts_ImportedContacts --- ## Type: contacts\_ImportedContacts [Back to types index](index.md) @@ -11,3 +11,11 @@ description: constructors of type contacts_ImportedContacts [contacts\_importedContacts](../constructors/contacts_importedContacts.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->contacts->importContacts](../methods/contacts_importContacts.md) + + + diff --git a/docs/API_docs/types/contacts_Link.md b/docs/API_docs/types/contacts_Link.md index 44394599..9d71bf53 100644 --- a/docs/API_docs/types/contacts_Link.md +++ b/docs/API_docs/types/contacts_Link.md @@ -1,6 +1,6 @@ --- title: contacts_Link -description: constructors of type contacts_Link +description: constructors and methods of type contacts_Link --- ## Type: contacts\_Link [Back to types index](index.md) @@ -11,3 +11,11 @@ description: constructors of type contacts_Link [contacts\_link](../constructors/contacts_link.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->contacts->deleteContact](../methods/contacts_deleteContact.md) + + + diff --git a/docs/API_docs/types/contacts_ResolvedPeer.md b/docs/API_docs/types/contacts_ResolvedPeer.md index 7ef43b69..f59f4510 100644 --- a/docs/API_docs/types/contacts_ResolvedPeer.md +++ b/docs/API_docs/types/contacts_ResolvedPeer.md @@ -1,6 +1,6 @@ --- title: contacts_ResolvedPeer -description: constructors of type contacts_ResolvedPeer +description: constructors and methods of type contacts_ResolvedPeer --- ## Type: contacts\_ResolvedPeer [Back to types index](index.md) @@ -11,3 +11,11 @@ description: constructors of type contacts_ResolvedPeer [contacts\_resolvedPeer](../constructors/contacts_resolvedPeer.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->contacts->resolveUsername](../methods/contacts_resolveUsername.md) + + + diff --git a/docs/API_docs/types/contacts_TopPeers.md b/docs/API_docs/types/contacts_TopPeers.md index 298dcce6..729e76d7 100644 --- a/docs/API_docs/types/contacts_TopPeers.md +++ b/docs/API_docs/types/contacts_TopPeers.md @@ -1,6 +1,6 @@ --- title: contacts_TopPeers -description: constructors of type contacts_TopPeers +description: constructors and methods of type contacts_TopPeers --- ## Type: contacts\_TopPeers [Back to types index](index.md) @@ -13,3 +13,11 @@ description: constructors of type contacts_TopPeers [contacts\_topPeers](../constructors/contacts_topPeers.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->contacts->getTopPeers](../methods/contacts_getTopPeers.md) + + + diff --git a/docs/API_docs/types/help_AppChangelog.md b/docs/API_docs/types/help_AppChangelog.md index 8827db3f..624ea592 100644 --- a/docs/API_docs/types/help_AppChangelog.md +++ b/docs/API_docs/types/help_AppChangelog.md @@ -1,6 +1,6 @@ --- title: help_AppChangelog -description: constructors of type help_AppChangelog +description: constructors and methods of type help_AppChangelog --- ## Type: help\_AppChangelog [Back to types index](index.md) @@ -13,3 +13,11 @@ description: constructors of type help_AppChangelog [help\_appChangelog](../constructors/help_appChangelog.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->help->getAppChangelog](../methods/help_getAppChangelog.md) + + + diff --git a/docs/API_docs/types/help_AppUpdate.md b/docs/API_docs/types/help_AppUpdate.md index e318a0b7..92cabbf6 100644 --- a/docs/API_docs/types/help_AppUpdate.md +++ b/docs/API_docs/types/help_AppUpdate.md @@ -1,6 +1,6 @@ --- title: help_AppUpdate -description: constructors of type help_AppUpdate +description: constructors and methods of type help_AppUpdate --- ## Type: help\_AppUpdate [Back to types index](index.md) @@ -13,3 +13,11 @@ description: constructors of type help_AppUpdate [help\_noAppUpdate](../constructors/help_noAppUpdate.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->help->getAppUpdate](../methods/help_getAppUpdate.md) + + + diff --git a/docs/API_docs/types/help_InviteText.md b/docs/API_docs/types/help_InviteText.md index b7a97070..15442f2b 100644 --- a/docs/API_docs/types/help_InviteText.md +++ b/docs/API_docs/types/help_InviteText.md @@ -1,6 +1,6 @@ --- title: help_InviteText -description: constructors of type help_InviteText +description: constructors and methods of type help_InviteText --- ## Type: help\_InviteText [Back to types index](index.md) @@ -11,3 +11,11 @@ description: constructors of type help_InviteText [help\_inviteText](../constructors/help_inviteText.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->help->getInviteText](../methods/help_getInviteText.md) + + + diff --git a/docs/API_docs/types/help_Support.md b/docs/API_docs/types/help_Support.md index 59ffc9b0..6c184734 100644 --- a/docs/API_docs/types/help_Support.md +++ b/docs/API_docs/types/help_Support.md @@ -1,6 +1,6 @@ --- title: help_Support -description: constructors of type help_Support +description: constructors and methods of type help_Support --- ## Type: help\_Support [Back to types index](index.md) @@ -11,3 +11,11 @@ description: constructors of type help_Support [help\_support](../constructors/help_support.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->help->getSupport](../methods/help_getSupport.md) + + + diff --git a/docs/API_docs/types/help_TermsOfService.md b/docs/API_docs/types/help_TermsOfService.md index 64a8e88a..b57b19cc 100644 --- a/docs/API_docs/types/help_TermsOfService.md +++ b/docs/API_docs/types/help_TermsOfService.md @@ -1,6 +1,6 @@ --- title: help_TermsOfService -description: constructors of type help_TermsOfService +description: constructors and methods of type help_TermsOfService --- ## Type: help\_TermsOfService [Back to types index](index.md) @@ -11,3 +11,11 @@ description: constructors of type help_TermsOfService [help\_termsOfService](../constructors/help_termsOfService.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->help->getTermsOfService](../methods/help_getTermsOfService.md) + + + diff --git a/docs/API_docs/types/index.md b/docs/API_docs/types/index.md index 7e23b836..c72b22e4 100644 --- a/docs/API_docs/types/index.md +++ b/docs/API_docs/types/index.md @@ -220,6 +220,8 @@ description: List of types [WebPage](WebPage.md) +[X](X.md) + [account\_Authorizations](account_Authorizations.md) [account\_Password](account_Password.md) @@ -272,6 +274,10 @@ description: List of types [help\_TermsOfService](help_TermsOfService.md) +[int](int.md) + +[long](long.md) + [messages\_AffectedHistory](messages_AffectedHistory.md) [messages\_AffectedMessages](messages_AffectedMessages.md) diff --git a/docs/API_docs/types/messages_AffectedHistory.md b/docs/API_docs/types/messages_AffectedHistory.md index 79d25a49..2c1e9d9a 100644 --- a/docs/API_docs/types/messages_AffectedHistory.md +++ b/docs/API_docs/types/messages_AffectedHistory.md @@ -1,6 +1,6 @@ --- title: messages_AffectedHistory -description: constructors of type messages_AffectedHistory +description: constructors and methods of type messages_AffectedHistory --- ## Type: messages\_AffectedHistory [Back to types index](index.md) @@ -11,3 +11,13 @@ description: constructors of type messages_AffectedHistory [messages\_affectedHistory](../constructors/messages_affectedHistory.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->deleteHistory](../methods/messages_deleteHistory.md) + +[$MadelineProto->channels->deleteUserHistory](../methods/channels_deleteUserHistory.md) + + + diff --git a/docs/API_docs/types/messages_AffectedMessages.md b/docs/API_docs/types/messages_AffectedMessages.md index e4a5971f..0ccb1a7f 100644 --- a/docs/API_docs/types/messages_AffectedMessages.md +++ b/docs/API_docs/types/messages_AffectedMessages.md @@ -1,6 +1,6 @@ --- title: messages_AffectedMessages -description: constructors of type messages_AffectedMessages +description: constructors and methods of type messages_AffectedMessages --- ## Type: messages\_AffectedMessages [Back to types index](index.md) @@ -11,3 +11,17 @@ description: constructors of type messages_AffectedMessages [messages\_affectedMessages](../constructors/messages_affectedMessages.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->readHistory](../methods/messages_readHistory.md) + +[$MadelineProto->messages->deleteMessages](../methods/messages_deleteMessages.md) + +[$MadelineProto->messages->readMessageContents](../methods/messages_readMessageContents.md) + +[$MadelineProto->channels->deleteMessages](../methods/channels_deleteMessages.md) + + + diff --git a/docs/API_docs/types/messages_AllStickers.md b/docs/API_docs/types/messages_AllStickers.md index 4adf06c1..f0f51899 100644 --- a/docs/API_docs/types/messages_AllStickers.md +++ b/docs/API_docs/types/messages_AllStickers.md @@ -1,6 +1,6 @@ --- title: messages_AllStickers -description: constructors of type messages_AllStickers +description: constructors and methods of type messages_AllStickers --- ## Type: messages\_AllStickers [Back to types index](index.md) @@ -13,3 +13,13 @@ description: constructors of type messages_AllStickers [messages\_allStickers](../constructors/messages_allStickers.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getAllStickers](../methods/messages_getAllStickers.md) + +[$MadelineProto->messages->getMaskStickers](../methods/messages_getMaskStickers.md) + + + diff --git a/docs/API_docs/types/messages_ArchivedStickers.md b/docs/API_docs/types/messages_ArchivedStickers.md index 57f18ed9..88a9ab37 100644 --- a/docs/API_docs/types/messages_ArchivedStickers.md +++ b/docs/API_docs/types/messages_ArchivedStickers.md @@ -1,6 +1,6 @@ --- title: messages_ArchivedStickers -description: constructors of type messages_ArchivedStickers +description: constructors and methods of type messages_ArchivedStickers --- ## Type: messages\_ArchivedStickers [Back to types index](index.md) @@ -11,3 +11,11 @@ description: constructors of type messages_ArchivedStickers [messages\_archivedStickers](../constructors/messages_archivedStickers.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getArchivedStickers](../methods/messages_getArchivedStickers.md) + + + diff --git a/docs/API_docs/types/messages_BotCallbackAnswer.md b/docs/API_docs/types/messages_BotCallbackAnswer.md index 742b5856..00b06cf1 100644 --- a/docs/API_docs/types/messages_BotCallbackAnswer.md +++ b/docs/API_docs/types/messages_BotCallbackAnswer.md @@ -1,6 +1,6 @@ --- title: messages_BotCallbackAnswer -description: constructors of type messages_BotCallbackAnswer +description: constructors and methods of type messages_BotCallbackAnswer --- ## Type: messages\_BotCallbackAnswer [Back to types index](index.md) @@ -11,3 +11,11 @@ description: constructors of type messages_BotCallbackAnswer [messages\_botCallbackAnswer](../constructors/messages_botCallbackAnswer.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getBotCallbackAnswer](../methods/messages_getBotCallbackAnswer.md) + + + diff --git a/docs/API_docs/types/messages_BotResults.md b/docs/API_docs/types/messages_BotResults.md index f120b544..e07a2e57 100644 --- a/docs/API_docs/types/messages_BotResults.md +++ b/docs/API_docs/types/messages_BotResults.md @@ -1,6 +1,6 @@ --- title: messages_BotResults -description: constructors of type messages_BotResults +description: constructors and methods of type messages_BotResults --- ## Type: messages\_BotResults [Back to types index](index.md) @@ -11,3 +11,11 @@ description: constructors of type messages_BotResults [messages\_botResults](../constructors/messages_botResults.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getInlineBotResults](../methods/messages_getInlineBotResults.md) + + + diff --git a/docs/API_docs/types/messages_ChatFull.md b/docs/API_docs/types/messages_ChatFull.md index 59820471..52040db4 100644 --- a/docs/API_docs/types/messages_ChatFull.md +++ b/docs/API_docs/types/messages_ChatFull.md @@ -1,6 +1,6 @@ --- title: messages_ChatFull -description: constructors of type messages_ChatFull +description: constructors and methods of type messages_ChatFull --- ## Type: messages\_ChatFull [Back to types index](index.md) @@ -11,3 +11,13 @@ description: constructors of type messages_ChatFull [messages\_chatFull](../constructors/messages_chatFull.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getFullChat](../methods/messages_getFullChat.md) + +[$MadelineProto->channels->getFullChannel](../methods/channels_getFullChannel.md) + + + diff --git a/docs/API_docs/types/messages_Chats.md b/docs/API_docs/types/messages_Chats.md index 4665f4c7..c9b6ff8a 100644 --- a/docs/API_docs/types/messages_Chats.md +++ b/docs/API_docs/types/messages_Chats.md @@ -1,6 +1,6 @@ --- title: messages_Chats -description: constructors of type messages_Chats +description: constructors and methods of type messages_Chats --- ## Type: messages\_Chats [Back to types index](index.md) @@ -11,3 +11,15 @@ description: constructors of type messages_Chats [messages\_chats](../constructors/messages_chats.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getChats](../methods/messages_getChats.md) + +[$MadelineProto->channels->getChannels](../methods/channels_getChannels.md) + +[$MadelineProto->channels->getAdminedPublicChannels](../methods/channels_getAdminedPublicChannels.md) + + + diff --git a/docs/API_docs/types/messages_DhConfig.md b/docs/API_docs/types/messages_DhConfig.md index f4c67056..86a5f919 100644 --- a/docs/API_docs/types/messages_DhConfig.md +++ b/docs/API_docs/types/messages_DhConfig.md @@ -1,6 +1,6 @@ --- title: messages_DhConfig -description: constructors of type messages_DhConfig +description: constructors and methods of type messages_DhConfig --- ## Type: messages\_DhConfig [Back to types index](index.md) @@ -13,3 +13,11 @@ description: constructors of type messages_DhConfig [messages\_dhConfig](../constructors/messages_dhConfig.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getDhConfig](../methods/messages_getDhConfig.md) + + + diff --git a/docs/API_docs/types/messages_Dialogs.md b/docs/API_docs/types/messages_Dialogs.md index f43f05f6..8ea2dc95 100644 --- a/docs/API_docs/types/messages_Dialogs.md +++ b/docs/API_docs/types/messages_Dialogs.md @@ -1,6 +1,6 @@ --- title: messages_Dialogs -description: constructors of type messages_Dialogs +description: constructors and methods of type messages_Dialogs --- ## Type: messages\_Dialogs [Back to types index](index.md) @@ -13,3 +13,11 @@ description: constructors of type messages_Dialogs [messages\_dialogsSlice](../constructors/messages_dialogsSlice.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getDialogs](../methods/messages_getDialogs.md) + + + diff --git a/docs/API_docs/types/messages_FeaturedStickers.md b/docs/API_docs/types/messages_FeaturedStickers.md index d87e1c0b..4c9642e1 100644 --- a/docs/API_docs/types/messages_FeaturedStickers.md +++ b/docs/API_docs/types/messages_FeaturedStickers.md @@ -1,6 +1,6 @@ --- title: messages_FeaturedStickers -description: constructors of type messages_FeaturedStickers +description: constructors and methods of type messages_FeaturedStickers --- ## Type: messages\_FeaturedStickers [Back to types index](index.md) @@ -13,3 +13,11 @@ description: constructors of type messages_FeaturedStickers [messages\_featuredStickers](../constructors/messages_featuredStickers.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getFeaturedStickers](../methods/messages_getFeaturedStickers.md) + + + diff --git a/docs/API_docs/types/messages_FoundGifs.md b/docs/API_docs/types/messages_FoundGifs.md index b53eb4ad..2992f9d7 100644 --- a/docs/API_docs/types/messages_FoundGifs.md +++ b/docs/API_docs/types/messages_FoundGifs.md @@ -1,6 +1,6 @@ --- title: messages_FoundGifs -description: constructors of type messages_FoundGifs +description: constructors and methods of type messages_FoundGifs --- ## Type: messages\_FoundGifs [Back to types index](index.md) @@ -11,3 +11,11 @@ description: constructors of type messages_FoundGifs [messages\_foundGifs](../constructors/messages_foundGifs.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->searchGifs](../methods/messages_searchGifs.md) + + + diff --git a/docs/API_docs/types/messages_HighScores.md b/docs/API_docs/types/messages_HighScores.md index 60204fa5..f9a638cc 100644 --- a/docs/API_docs/types/messages_HighScores.md +++ b/docs/API_docs/types/messages_HighScores.md @@ -1,6 +1,6 @@ --- title: messages_HighScores -description: constructors of type messages_HighScores +description: constructors and methods of type messages_HighScores --- ## Type: messages\_HighScores [Back to types index](index.md) @@ -11,3 +11,13 @@ description: constructors of type messages_HighScores [messages\_highScores](../constructors/messages_highScores.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getGameHighScores](../methods/messages_getGameHighScores.md) + +[$MadelineProto->messages->getInlineGameHighScores](../methods/messages_getInlineGameHighScores.md) + + + diff --git a/docs/API_docs/types/messages_MessageEditData.md b/docs/API_docs/types/messages_MessageEditData.md index 88e744d8..9e231425 100644 --- a/docs/API_docs/types/messages_MessageEditData.md +++ b/docs/API_docs/types/messages_MessageEditData.md @@ -1,6 +1,6 @@ --- title: messages_MessageEditData -description: constructors of type messages_MessageEditData +description: constructors and methods of type messages_MessageEditData --- ## Type: messages\_MessageEditData [Back to types index](index.md) @@ -11,3 +11,11 @@ description: constructors of type messages_MessageEditData [messages\_messageEditData](../constructors/messages_messageEditData.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getMessageEditData](../methods/messages_getMessageEditData.md) + + + diff --git a/docs/API_docs/types/messages_Messages.md b/docs/API_docs/types/messages_Messages.md index 81562a85..8e21df5b 100644 --- a/docs/API_docs/types/messages_Messages.md +++ b/docs/API_docs/types/messages_Messages.md @@ -1,6 +1,6 @@ --- title: messages_Messages -description: constructors of type messages_Messages +description: constructors and methods of type messages_Messages --- ## Type: messages\_Messages [Back to types index](index.md) @@ -15,3 +15,19 @@ description: constructors of type messages_Messages [messages\_channelMessages](../constructors/messages_channelMessages.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getMessages](../methods/messages_getMessages.md) + +[$MadelineProto->messages->getHistory](../methods/messages_getHistory.md) + +[$MadelineProto->messages->search](../methods/messages_search.md) + +[$MadelineProto->channels->getMessages](../methods/channels_getMessages.md) + +[$MadelineProto->messages->searchGlobal](../methods/messages_searchGlobal.md) + + + diff --git a/docs/API_docs/types/messages_PeerDialogs.md b/docs/API_docs/types/messages_PeerDialogs.md index 73ddad52..547d73fe 100644 --- a/docs/API_docs/types/messages_PeerDialogs.md +++ b/docs/API_docs/types/messages_PeerDialogs.md @@ -1,6 +1,6 @@ --- title: messages_PeerDialogs -description: constructors of type messages_PeerDialogs +description: constructors and methods of type messages_PeerDialogs --- ## Type: messages\_PeerDialogs [Back to types index](index.md) @@ -11,3 +11,11 @@ description: constructors of type messages_PeerDialogs [messages\_peerDialogs](../constructors/messages_peerDialogs.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getPeerDialogs](../methods/messages_getPeerDialogs.md) + + + diff --git a/docs/API_docs/types/messages_RecentStickers.md b/docs/API_docs/types/messages_RecentStickers.md index 71e033ce..e10980ec 100644 --- a/docs/API_docs/types/messages_RecentStickers.md +++ b/docs/API_docs/types/messages_RecentStickers.md @@ -1,6 +1,6 @@ --- title: messages_RecentStickers -description: constructors of type messages_RecentStickers +description: constructors and methods of type messages_RecentStickers --- ## Type: messages\_RecentStickers [Back to types index](index.md) @@ -13,3 +13,11 @@ description: constructors of type messages_RecentStickers [messages\_recentStickers](../constructors/messages_recentStickers.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getRecentStickers](../methods/messages_getRecentStickers.md) + + + diff --git a/docs/API_docs/types/messages_SavedGifs.md b/docs/API_docs/types/messages_SavedGifs.md index 4b532a5b..0aa766ec 100644 --- a/docs/API_docs/types/messages_SavedGifs.md +++ b/docs/API_docs/types/messages_SavedGifs.md @@ -1,6 +1,6 @@ --- title: messages_SavedGifs -description: constructors of type messages_SavedGifs +description: constructors and methods of type messages_SavedGifs --- ## Type: messages\_SavedGifs [Back to types index](index.md) @@ -13,3 +13,11 @@ description: constructors of type messages_SavedGifs [messages\_savedGifs](../constructors/messages_savedGifs.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getSavedGifs](../methods/messages_getSavedGifs.md) + + + diff --git a/docs/API_docs/types/messages_SentEncryptedMessage.md b/docs/API_docs/types/messages_SentEncryptedMessage.md index 65b46c21..a5376e4b 100644 --- a/docs/API_docs/types/messages_SentEncryptedMessage.md +++ b/docs/API_docs/types/messages_SentEncryptedMessage.md @@ -1,6 +1,6 @@ --- title: messages_SentEncryptedMessage -description: constructors of type messages_SentEncryptedMessage +description: constructors and methods of type messages_SentEncryptedMessage --- ## Type: messages\_SentEncryptedMessage [Back to types index](index.md) @@ -13,3 +13,15 @@ description: constructors of type messages_SentEncryptedMessage [messages\_sentEncryptedFile](../constructors/messages_sentEncryptedFile.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->sendEncrypted](../methods/messages_sendEncrypted.md) + +[$MadelineProto->messages->sendEncryptedFile](../methods/messages_sendEncryptedFile.md) + +[$MadelineProto->messages->sendEncryptedService](../methods/messages_sendEncryptedService.md) + + + diff --git a/docs/API_docs/types/messages_StickerSet.md b/docs/API_docs/types/messages_StickerSet.md index bea2ac27..6fb356d0 100644 --- a/docs/API_docs/types/messages_StickerSet.md +++ b/docs/API_docs/types/messages_StickerSet.md @@ -1,6 +1,6 @@ --- title: messages_StickerSet -description: constructors of type messages_StickerSet +description: constructors and methods of type messages_StickerSet --- ## Type: messages\_StickerSet [Back to types index](index.md) @@ -11,3 +11,11 @@ description: constructors of type messages_StickerSet [messages\_stickerSet](../constructors/messages_stickerSet.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getStickerSet](../methods/messages_getStickerSet.md) + + + diff --git a/docs/API_docs/types/messages_StickerSetInstallResult.md b/docs/API_docs/types/messages_StickerSetInstallResult.md index fe20bb28..69808867 100644 --- a/docs/API_docs/types/messages_StickerSetInstallResult.md +++ b/docs/API_docs/types/messages_StickerSetInstallResult.md @@ -1,6 +1,6 @@ --- title: messages_StickerSetInstallResult -description: constructors of type messages_StickerSetInstallResult +description: constructors and methods of type messages_StickerSetInstallResult --- ## Type: messages\_StickerSetInstallResult [Back to types index](index.md) @@ -13,3 +13,11 @@ description: constructors of type messages_StickerSetInstallResult [messages\_stickerSetInstallResultArchive](../constructors/messages_stickerSetInstallResultArchive.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->installStickerSet](../methods/messages_installStickerSet.md) + + + diff --git a/docs/API_docs/types/messages_Stickers.md b/docs/API_docs/types/messages_Stickers.md index 72dbc640..1a159684 100644 --- a/docs/API_docs/types/messages_Stickers.md +++ b/docs/API_docs/types/messages_Stickers.md @@ -1,6 +1,6 @@ --- title: messages_Stickers -description: constructors of type messages_Stickers +description: constructors and methods of type messages_Stickers --- ## Type: messages\_Stickers [Back to types index](index.md) @@ -13,3 +13,9 @@ description: constructors of type messages_Stickers [messages\_stickers](../constructors/messages_stickers.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/photos_Photo.md b/docs/API_docs/types/photos_Photo.md index a3f03e98..e4d99c03 100644 --- a/docs/API_docs/types/photos_Photo.md +++ b/docs/API_docs/types/photos_Photo.md @@ -1,6 +1,6 @@ --- title: photos_Photo -description: constructors of type photos_Photo +description: constructors and methods of type photos_Photo --- ## Type: photos\_Photo [Back to types index](index.md) @@ -11,3 +11,11 @@ description: constructors of type photos_Photo [photos\_photo](../constructors/photos_photo.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->photos->uploadProfilePhoto](../methods/photos_uploadProfilePhoto.md) + + + diff --git a/docs/API_docs/types/photos_Photos.md b/docs/API_docs/types/photos_Photos.md index 1dfcc9a6..e8de2da7 100644 --- a/docs/API_docs/types/photos_Photos.md +++ b/docs/API_docs/types/photos_Photos.md @@ -1,6 +1,6 @@ --- title: photos_Photos -description: constructors of type photos_Photos +description: constructors and methods of type photos_Photos --- ## Type: photos\_Photos [Back to types index](index.md) @@ -13,3 +13,11 @@ description: constructors of type photos_Photos [photos\_photosSlice](../constructors/photos_photosSlice.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->photos->getUserPhotos](../methods/photos_getUserPhotos.md) + + + diff --git a/docs/API_docs/types/storage_FileType.md b/docs/API_docs/types/storage_FileType.md index 6f9d9c89..81b5cfb4 100644 --- a/docs/API_docs/types/storage_FileType.md +++ b/docs/API_docs/types/storage_FileType.md @@ -1,6 +1,6 @@ --- title: storage_FileType -description: constructors of type storage_FileType +description: constructors and methods of type storage_FileType --- ## Type: storage\_FileType [Back to types index](index.md) @@ -29,3 +29,9 @@ description: constructors of type storage_FileType [storage\_fileWebp](../constructors/storage_fileWebp.md) + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/updates_ChannelDifference.md b/docs/API_docs/types/updates_ChannelDifference.md index 94c3eced..c19a8c3c 100644 --- a/docs/API_docs/types/updates_ChannelDifference.md +++ b/docs/API_docs/types/updates_ChannelDifference.md @@ -1,6 +1,6 @@ --- title: updates_ChannelDifference -description: constructors of type updates_ChannelDifference +description: constructors and methods of type updates_ChannelDifference --- ## Type: updates\_ChannelDifference [Back to types index](index.md) @@ -15,3 +15,11 @@ description: constructors of type updates_ChannelDifference [updates\_channelDifference](../constructors/updates_channelDifference.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->updates->getChannelDifference](../methods/updates_getChannelDifference.md) + + + diff --git a/docs/API_docs/types/updates_Difference.md b/docs/API_docs/types/updates_Difference.md index 4c5d9140..8f78192b 100644 --- a/docs/API_docs/types/updates_Difference.md +++ b/docs/API_docs/types/updates_Difference.md @@ -1,6 +1,6 @@ --- title: updates_Difference -description: constructors of type updates_Difference +description: constructors and methods of type updates_Difference --- ## Type: updates\_Difference [Back to types index](index.md) @@ -15,3 +15,11 @@ description: constructors of type updates_Difference [updates\_differenceSlice](../constructors/updates_differenceSlice.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->updates->getDifference](../methods/updates_getDifference.md) + + + diff --git a/docs/API_docs/types/updates_State.md b/docs/API_docs/types/updates_State.md index 26205811..b24df144 100644 --- a/docs/API_docs/types/updates_State.md +++ b/docs/API_docs/types/updates_State.md @@ -1,6 +1,6 @@ --- title: updates_State -description: constructors of type updates_State +description: constructors and methods of type updates_State --- ## Type: updates\_State [Back to types index](index.md) @@ -11,3 +11,11 @@ description: constructors of type updates_State [updates\_state](../constructors/updates_state.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->updates->getState](../methods/updates_getState.md) + + + diff --git a/docs/API_docs/types/upload_File.md b/docs/API_docs/types/upload_File.md index 2505bd4f..1c0aabdc 100644 --- a/docs/API_docs/types/upload_File.md +++ b/docs/API_docs/types/upload_File.md @@ -1,6 +1,6 @@ --- title: upload_File -description: constructors of type upload_File +description: constructors and methods of type upload_File --- ## Type: upload\_File [Back to types index](index.md) @@ -11,3 +11,11 @@ description: constructors of type upload_File [upload\_file](../constructors/upload_file.md) + + +### Methods that return an object of this type (methods): + +[$MadelineProto->upload->getFile](../methods/upload_getFile.md) + + + diff --git a/docs/index.md b/docs/index.md index 94855b1e..eb478f79 100644 --- a/docs/index.md +++ b/docs/index.md @@ -217,14 +217,14 @@ for ($x = 0; $x < $sentCode['type']['length']; $x++) { $authorization = $MadelineProto->complete_phone_login($code); // Complete authorization var_dump($authorization); -var_dump($MadelineProto->API->resolve_username('@Palmas2012')); // Always use this method to resolve usernames, but you won't need to call this to get info about peers, as get_peer and get_input_peer will call it for you if needed +var_dump($MadelineProto->resolve_username('@Palmas2012')); // Always use this method to resolve usernames, but you won't need to call this to get info about peers, as get_peer and get_input_peer will call it for you if needed -$mention = $MadelineProto->API->get_peer('@veetaw'); // Returns an object of type User or Chat -$mention = $MadelineProto->API->constructor2inputpeer($mention); // Converts an object of type User or Chat to an object of type inputPeer +$mention = $MadelineProto->get_peer('@veetaw'); // Returns an object of type User or Chat +$mention = $MadelineProto->constructor2inputpeer($mention); // Converts an object of type User or Chat to an object of type inputPeer $message = "I've installed MadelineProto!"; foreach (['@pwrtelegramgroup', '@pwrtelegramgroupita'] as $peer) { - $peer = $MadelineProto->API->get_input_peer($peer); + $peer = $MadelineProto->get_input_peer($peer); $sentMessage = $MadelineProto->messages->sendMessage(['peer' => $peer, 'message' => $message, 'entities' => [['_' => 'inputMessageEntityMentionName', 'offset' => 0, 'length' => strlen($message), 'user_id' => $mention]]]); var_dump($sentMessage); } @@ -267,13 +267,18 @@ src/danog/MadelineProto/ ResponseHandler - Handles the content of responses received, service messages, rpc results, errors, and stores them into the response section of the outgoing messages array) SaltHandler - Handles server salts SeqNoHandler - Handles sequence numbers (checks validity) + PeerHandler - Manages peers + UpdateHandler - Handles updates TL/ Exception - Handles exceptions in the TL namespace TL - Handles TL serialization and deserialization TLConstructor - Stores TL constructors TLMethod - Stores TL methods TLParams - Parses params - API - Wrapper class that instantiates the MTProto class, sets the error handler, provides a wrapper for calling mtproto methods directly as class submethods, and provides some simplified wrappers for logging in to telegram + Wrappers/ + Login - Handles logging in as a bot or a user, logging out + PeerHandler - Eases getting of input peer objects using usernames or bot API chat ids + API - Wrapper class that instantiates the MTProto class, sets the error handler, provides a wrapper for calling mtproto methods directly as class submethods, and uses the simplified wrappers from Wrappers/ APIFactory - Provides a wrapper for calling namespaced mtproto methods directly as class submethods Connection - Handles tcp/udp/http connections and wrapping payloads generated by MTProtoTools/MessageHandler into the right message according to the protocol, stores authorization keys, session id and sequence number DataCenter - Handles mtproto datacenters (is a wrapper for Connection classes) diff --git a/src/danog/MadelineProto/API.php b/src/danog/MadelineProto/API.php index 1ddc8dac..9e432dca 100644 --- a/src/danog/MadelineProto/API.php +++ b/src/danog/MadelineProto/API.php @@ -14,6 +14,9 @@ namespace danog\MadelineProto; class API extends APIFactory { + use \danog\MadelineProto\Wrappers\Login; + use \danog\MadelineProto\Wrappers\PeerHandler; + public $API; public $settings; public $namespace = ''; @@ -33,102 +36,6 @@ class API extends APIFactory $this->future_salts = $this->get_future_salts([3]); \danog\MadelineProto\Logger::log('MadelineProto is ready!'); - restore_error_handler(); - } - - public function APIFactory() - { - foreach ($this->API->tl->methods->method_namespace as $namespace) { - $this->{$namespace} = new APIFactory($namespace, $this->API); - } - } - - public function logout() - { - set_error_handler(['\danog\MadelineProto\Exception', 'ExceptionErrorHandler']); - if (!$this->API->method_call('auth.logOut')) { - throw new Exception('An error occurred while logging out!'); - } - $this->API->datacenter->authorized = false; - $this->API->datacenter->authorization = null; - \danog\MadelineProto\Logger::log('Logged out successfully!'); - restore_error_handler(); - - return true; - } - - public function bot_login($token) - { - set_error_handler(['\danog\MadelineProto\Exception', 'ExceptionErrorHandler']); - if ($this->API->datacenter->authorized) { - \danog\MadelineProto\Logger::log('This instance of MadelineProto is already logged in. Logging out first...'); - $this->logout(); - } - \danog\MadelineProto\Logger::log('Logging in as a bot...'); - $this->API->datacenter->authorization = $this->API->method_call( - 'auth.importBotAuthorization', - [ - 'bot_auth_token' => $token, - 'api_id' => $this->API->settings['app_info']['api_id'], - 'api_hash' => $this->API->settings['app_info']['api_hash'], - ] - ); - $this->API->datacenter->authorized = true; - $this->API->get_updates_state(); - \danog\MadelineProto\Logger::log('Logged in successfully!'); - restore_error_handler(); - - return $this->API->datacenter->authorization; - } - - public function phone_login($number, $sms_type = 5) - { - set_error_handler(['\danog\MadelineProto\Exception', 'ExceptionErrorHandler']); - if ($this->API->datacenter->authorized) { - \danog\MadelineProto\Logger::log('This instance of MadelineProto is already logged in. Logging out first...'); - $this->logout(); - } - \danog\MadelineProto\Logger::log('Sending code...'); - $this->API->datacenter->authorization = $this->API->method_call( - 'auth.sendCode', - [ - 'phone_number' => $number, - 'sms_type' => $sms_type, - 'api_id' => $this->API->settings['app_info']['api_id'], - 'api_hash' => $this->API->settings['app_info']['api_hash'], - 'lang_code' => $this->API->settings['app_info']['lang_code'], - ] - ); - $this->API->datacenter->authorization['phone_number'] = $number; - $this->API->datacenter->waiting_code = true; - \danog\MadelineProto\Logger::log('Code sent successfully! Once you receive the code you should use the complete_phone_login function.'); - restore_error_handler(); - - return $this->API->datacenter->authorization; - } - - public function complete_phone_login($code) - { - set_error_handler(['\danog\MadelineProto\Exception', 'ExceptionErrorHandler']); - if (!$this->API->datacenter->waiting_code) { - throw new Exception("I'm not waiting for the code! Please call the phone_login method first"); - } - \danog\MadelineProto\Logger::log('Logging in as a normal user...'); - $this->API->datacenter->authorization = $this->API->method_call( - 'auth.signIn', - [ - 'phone_number' => $this->API->datacenter->authorization['phone_number'], - 'phone_code_hash' => $this->API->datacenter->authorization['phone_code_hash'], - 'phone_code' => $code, - ] - ); - $this->API->datacenter->waiting_code = false; - $this->API->datacenter->authorized = true; - $this->API->get_updates_state(); - \danog\MadelineProto\Logger::log('Logged in successfully!'); - restore_error_handler(); - - return $this->API->datacenter->authorization; } public function __sleep() @@ -145,4 +52,12 @@ class API extends APIFactory { restore_error_handler(); } + + public function APIFactory() + { + foreach ($this->API->tl->methods->method_namespace as $namespace) { + $this->{$namespace} = new APIFactory($namespace, $this->API); + } + } + } diff --git a/src/danog/MadelineProto/APIFactory.php b/src/danog/MadelineProto/APIFactory.php index 5a8a594d..2c569a03 100644 --- a/src/danog/MadelineProto/APIFactory.php +++ b/src/danog/MadelineProto/APIFactory.php @@ -25,10 +25,8 @@ class APIFactory public function __call($name, $arguments) { - set_error_handler(['\danog\MadelineProto\Exception', 'ExceptionErrorHandler']); $this->API->get_config(); return $this->API->method_call($this->namespace.$name, is_array($arguments[0]) ? $arguments[0] : []); - restore_error_handler(); } } diff --git a/src/danog/MadelineProto/MTProtoTools/PeerHandler.php b/src/danog/MadelineProto/MTProtoTools/PeerHandler.php index 7d705eb0..a487d10e 100644 --- a/src/danog/MadelineProto/MTProtoTools/PeerHandler.php +++ b/src/danog/MadelineProto/MTProtoTools/PeerHandler.php @@ -54,59 +54,4 @@ trait PeerHandler } } - public function get_peer($id, $recursive = true) - { - if (is_numeric($id)) { - if (isset($this->chats[$id])) { - return $this->chats[$id]; - } -// if ($recursive) { -// } - throw new \danog\MadelineProto\Exception("Couldn't find peer by provided chat id ".$id); - } - $id = str_replace('@', '', $id); - foreach ($this->chats as $chat) { - if (isset($chat['username']) && $chat['username'] == $id) { - return $chat; - } - } - if ($recursive) { - $this->resolve_username($id); - - return $this->get_peer($id, false); - } - throw new \danog\MadelineProto\Exception("Couldn't find peer by provided username ".$id); - } - - public function get_input_peer($id) - { - return $this->constructor2inputpeer($this->get_peer($id)); - } - - public function constructor2inputpeer($peer) - { - switch ($peer['_']) { - case 'user': - return $peer['self'] ? ['_' => 'inputPeerSelf'] : ['_' => 'inputPeerUser', 'user_id' => $peer['id'], 'access_hash' => $peer['access_hash']]; - case 'chat': - case 'chatEmpty': - return ['_' => 'inputPeerChat', 'chat_id' => $peer['id']]; - case 'channel': - return ['_' => 'inputPeerChannel', 'channel_id' => $peer['id'], 'access_hash' => $peer['access_hash']]; - default: - throw new \danog\MadelineProto\Exception('Invalid constructor given'); - } - } - - public function resolve_username($username) - { - $res = $this->method_call('contacts.resolveUsername', ['username' => str_replace('@', '', $username)]); - if ($res['_'] == 'contacts.resolvedPeer') { - $this->add_users($res['users']); - $this->add_chats($res['chats']); - - return $res; - } - throw new \danog\MadelineProto\Exception('resolve_username returned an unexpected constructor: '.var_export($username, true)); - } } diff --git a/src/danog/MadelineProto/MTProtoTools/ResponseHandler.php b/src/danog/MadelineProto/MTProtoTools/ResponseHandler.php index 4e681400..d8002503 100644 --- a/src/danog/MadelineProto/MTProtoTools/ResponseHandler.php +++ b/src/danog/MadelineProto/MTProtoTools/ResponseHandler.php @@ -71,6 +71,11 @@ trait ResponseHandler foreach ($this->datacenter->new_incoming as $current_msg_id) { $response = $this->datacenter->incoming_messages[$current_msg_id]['content']; \danog\MadelineProto\Logger::log('Received '.$response['_'].'.'); + + if (isset($response['users'])) $this->add_users($response['users']); + if (isset($response['chats'])) $this->add_chats($response['chats']); + if (isset($response['result']['users'])) $this->add_users($response['result']['users']); + if (isset($response['result']['chats'])) $this->add_chats($response['result']['chats']); switch ($response['_']) { case 'msgs_ack': foreach ($response['msg_ids'] as $msg_id) { @@ -114,6 +119,7 @@ trait ResponseHandler \danog\MadelineProto\Logger::log('new session created'); \danog\MadelineProto\Logger::log($response); unset($this->datacenter->new_incoming[$current_msg_id]); + if ($this->datacenter->authorized) $this->get_updates_state(); break; case 'msg_container': diff --git a/src/danog/MadelineProto/MTProtoTools/UpdateHandler.php b/src/danog/MadelineProto/MTProtoTools/UpdateHandler.php index ed456287..5f0faaf1 100644 --- a/src/danog/MadelineProto/MTProtoTools/UpdateHandler.php +++ b/src/danog/MadelineProto/MTProtoTools/UpdateHandler.php @@ -41,18 +41,18 @@ trait UpdateHandler $this->update_state($difference); break; case 'updates.difference': - $this->update_state($difference['state']); $this->add_users($difference['users']); $this->add_chats($difference['chats']); $this->handle_update_messages($difference['new_messages']); - $this->handle_other_updates($difference['other_updates']); + $this->handle_multiple_update($difference['other_updates']); + $this->update_state($difference['state']); break; case 'updates.differenceSlice': - $this->update_state($difference['state']); $this->add_users($difference['users']); $this->add_chats($difference['chats']); $this->handle_update_messages($difference['new_messages']); - $this->handle_other_updates($difference['other_updates']); + $this->handle_multiple_update($difference['other_updates']); + $this->update_state($difference['intermediate_state']); $this->get_updates_state(); break; default: @@ -70,20 +70,21 @@ trait UpdateHandler case 'updateShortMessage': case 'updateShortChatMessage': case 'updateShortSentMessage': - $this->handle_update_messages([$updates]); + $update = ['_' => 'updateNewMessage',]; + $this->handle_update_messages($update, ['date' => $updates['date']]); break; case 'updateShort': - $this->handle_other_updates([$updates['update']]); + $this->handle_update($updates['update'], ['date' => $updates['date']]); break; case 'updatesCombined': $this->add_users($updates['users']); $this->add_chats($updates['chats']); - $this->handle_other_updates($updates['updates']); + $this->handle_multiple_update($updates['updates']); break; case 'updates': $this->add_users($updates['users']); $this->add_chats($updates['chats']); - $this->handle_other_updates($updates['updates']); + $this->handle_multiple_update($updates['updates']); break; default: throw new \danog\MadelineProto\Exception('Unrecognized update received: '.var_export($updates)); @@ -91,13 +92,22 @@ trait UpdateHandler } } - public function handle_other_updates($updates) + public function handle_update($update) { - var_dump($updates); + var_dump($update); + } + + public function handle_multiple_update($updates) + { + foreach ($updates as $update) { + $this->handle_update($update); + } } public function handle_update_messages($messages) { - var_dump($messages); + foreach ($messages as $message) { + $this->handle_update(['_' => 'updateNewMessage', 'message' => $message, 'pts' => $this->updates_state[0]['pts'], 'pts_count' => 0]); + } } } diff --git a/src/danog/MadelineProto/TL/TL.php b/src/danog/MadelineProto/TL/TL.php index 5f3e5500..11c70808 100644 --- a/src/danog/MadelineProto/TL/TL.php +++ b/src/danog/MadelineProto/TL/TL.php @@ -216,7 +216,7 @@ class TL extends \danog\MadelineProto\Tools $serialized .= \phpseclib\Crypt\Random::string(4); continue 2; case 'Vector t': - if ($method == 'messages.forwardMessages') { + if (isset($argumenrs['id'])) { $serialized .= \danog\PHP\Struct::pack('constructors->find_by_predicate('vector')['id']); $serialized .= \danog\PHP\Struct::pack('. +*/ + +namespace danog\MadelineProto\Wrappers; + +/** + * Manages logging in and out + */ +trait Login +{ + public function logout() + { + if (!$this->API->method_call('auth.logOut')) { + throw new \danog\MadelineProto\Exception('An error occurred while logging out!'); + } + $this->API->datacenter->authorized = false; + $this->API->datacenter->authorization = null; + \danog\MadelineProto\Logger::log('Logged out successfully!'); + + return true; + } + + public function bot_login($token) + { + if ($this->API->datacenter->authorized) { + \danog\MadelineProto\Logger::log('This instance of MadelineProto is already logged in. Logging out first...'); + $this->logout(); + } + \danog\MadelineProto\Logger::log('Logging in as a bot...'); + $this->API->datacenter->authorization = $this->API->method_call( + 'auth.importBotAuthorization', + [ + 'bot_auth_token' => $token, + 'api_id' => $this->API->settings['app_info']['api_id'], + 'api_hash' => $this->API->settings['app_info']['api_hash'], + ] + ); + $this->API->datacenter->authorized = true; + $this->API->get_updates_state(); + \danog\MadelineProto\Logger::log('Logged in successfully!'); + + return $this->API->datacenter->authorization; + } + + public function phone_login($number, $sms_type = 5) + { + if ($this->API->datacenter->authorized) { + \danog\MadelineProto\Logger::log('This instance of MadelineProto is already logged in. Logging out first...'); + $this->logout(); + } + \danog\MadelineProto\Logger::log('Sending code...'); + $this->API->datacenter->authorization = $this->API->method_call( + 'auth.sendCode', + [ + 'phone_number' => $number, + 'sms_type' => $sms_type, + 'api_id' => $this->API->settings['app_info']['api_id'], + 'api_hash' => $this->API->settings['app_info']['api_hash'], + 'lang_code' => $this->API->settings['app_info']['lang_code'], + ] + ); + $this->API->datacenter->authorization['phone_number'] = $number; + $this->API->datacenter->waiting_code = true; + \danog\MadelineProto\Logger::log('Code sent successfully! Once you receive the code you should use the complete_phone_login function.'); + + return $this->API->datacenter->authorization; + } + + public function complete_phone_login($code) + { + if (!$this->API->datacenter->waiting_code) { + throw new \danog\MadelineProto\Exception("I'm not waiting for the code! Please call the phone_login method first"); + } + \danog\MadelineProto\Logger::log('Logging in as a normal user...'); + $this->API->datacenter->authorization = $this->API->method_call( + 'auth.signIn', + [ + 'phone_number' => $this->API->datacenter->authorization['phone_number'], + 'phone_code_hash' => $this->API->datacenter->authorization['phone_code_hash'], + 'phone_code' => $code, + ] + ); + $this->API->datacenter->waiting_code = false; + $this->API->datacenter->authorized = true; + $this->API->get_updates_state(); + \danog\MadelineProto\Logger::log('Logged in successfully!'); + + return $this->API->datacenter->authorization; + } + +} diff --git a/src/danog/MadelineProto/Wrappers/PeerHandler.php b/src/danog/MadelineProto/Wrappers/PeerHandler.php new file mode 100644 index 00000000..79b4352a --- /dev/null +++ b/src/danog/MadelineProto/Wrappers/PeerHandler.php @@ -0,0 +1,72 @@ +. +*/ + +namespace danog\MadelineProto\Wrappers; + +/** + * Manages peers. + */ +trait PeerHandler +{ + public function get_peer($id, $recursive = true) + { + if (is_numeric($id)) { + if (isset($this->API->chats[$id])) { + return $this->API->chats[$id]; + } +// if ($recursive) { +// } + throw new \danog\MadelineProto\Exception("Couldn't find peer by provided chat id ".$id); + } + $id = str_replace('@', '', $id); + foreach ($this->API->chats as $chat) { + if (isset($chat['username']) && $chat['username'] == $id) { + return $chat; + } + } + if ($recursive) { + $this->resolve_username($id); + + return $this->get_peer($id, false); + } + throw new \danog\MadelineProto\Exception("Couldn't find peer by provided username ".$id); + } + + public function get_input_peer($id) + { + return $this->constructor2inputpeer($this->get_peer($id)); + } + + public function constructor2inputpeer($peer) + { + switch ($peer['_']) { + case 'user': + return $peer['self'] ? ['_' => 'inputPeerSelf'] : ['_' => 'inputPeerUser', 'user_id' => $peer['id'], 'access_hash' => $peer['access_hash']]; + case 'chat': + case 'chatEmpty': + return ['_' => 'inputPeerChat', 'chat_id' => $peer['id']]; + case 'channel': + return ['_' => 'inputPeerChannel', 'channel_id' => $peer['id'], 'access_hash' => $peer['access_hash']]; + default: + throw new \danog\MadelineProto\Exception('Invalid constructor given'); + } + } + + public function resolve_username($username) + { + $res = $this->API->method_call('contacts.resolveUsername', ['username' => str_replace('@', '', $username)]); + if ($res['_'] == 'contacts.resolvedPeer') { + return $res; + } + throw new \danog\MadelineProto\Exception('resolve_username returned an unexpected constructor: '.var_export($username, true)); + } +} diff --git a/testing.php b/testing.php index df6d9b3c..85caad61 100755 --- a/testing.php +++ b/testing.php @@ -22,16 +22,16 @@ if (file_exists('number.php') && !file_exists('session.madeline')) { 'phone_number' => $number, ] ); - var_dump($checkedPhone); + \danog\MadelineProto\Logger::log($checkedPhone); $sentCode = $MadelineProto->phone_login($number); - var_dump($sentCode); + \danog\MadelineProto\Logger::log($sentCode); echo 'Enter the code you received: '; $code = ''; for ($x = 0; $x < $sentCode['type']['length']; $x++) { $code .= fgetc(STDIN); } $authorization = $MadelineProto->complete_phone_login($code); - var_dump($authorization); + \danog\MadelineProto\Logger::log($authorization); echo 'Serializing MadelineProto to session.madeline...'.PHP_EOL; echo 'Wrote '.file_put_contents('session.madeline', serialize($MadelineProto)).' bytes'.PHP_EOL; } @@ -42,15 +42,15 @@ $message = (getenv('TRAVIS_COMMIT') == '') ? 'Message entities can be sent too ( $flutter = 'https://storage.pwrtelegram.xyz/pwrtelegrambot/document/file_6570.mp4'; -var_dump($MadelineProto->API->resolve_username('@Palmas2012')); // Always use this method to resolve usernames, but you won't need to call this to get info about peers, as get_peer and get_input_peer will call it for you if needed +\danog\MadelineProto\Logger::log($MadelineProto->resolve_username('@Palmas2012')); // Always use this method to resolve usernames, but you won't need to call this to get info about peers, as get_peer and get_input_peer will call it for you if needed -$mention = $MadelineProto->API->get_peer('@veetaw'); // Returns an object of type User or Chat -$mention = $MadelineProto->API->constructor2inputpeer($mention); // Converts an object of type User or Chat to an object of type inputPeer +$mention = $MadelineProto->get_peer('@veetaw'); // Returns an object of type User or Chat +$mention = $MadelineProto->constructor2inputpeer($mention); // Converts an object of type User or Chat to an object of type inputPeer foreach (['@pwrtelegramgroup', '@pwrtelegramgroupita'] as $peer) { - $peer = $MadelineProto->API->get_input_peer($peer); // Returns directly an inputPeer object, basically does the same thing I've done manually above + $peer = $MadelineProto->get_input_peer($peer); // Returns directly an inputPeer object, basically does the same thing I've done manually above $sentMessage = $MadelineProto->messages->sendMessage(['peer' => $peer, 'message' => $message.' & pony', 'entities' => [['_' => 'messageEntityUrl', 'offset' => strlen($message) + 1, 'length' => 6, 'url' => $flutter], ['_' => 'inputMessageEntityMentionName', 'offset' => 0, 'length' => strlen($message), 'user_id' => $mention]]]); - var_dump($sentMessage); + \danog\MadelineProto\Logger::log($sentMessage); } echo 'Size of MadelineProto instance is '.strlen(serialize($MadelineProto)).' bytes'.PHP_EOL; @@ -58,10 +58,10 @@ if (file_exists('token.php')) { include_once 'token.php'; $MadelineProto = new \danog\MadelineProto\API(); $authorization = $MadelineProto->bot_login($token); - var_dump($authorization); + \danog\MadelineProto\Logger::log($authorization); } foreach (['@pwrtelegramgroup', '@pwrtelegramgroupita'] as $peer) { - $peer = $MadelineProto->API->get_input_peer($peer); + $peer = $MadelineProto->get_input_peer($peer); $sentMessage = $MadelineProto->messages->sendMessage(['peer' => $peer, 'message' => $message.' & pony', 'entities' => [['_' => 'messageEntityUrl', 'offset' => strlen($message) + 1, 'length' => 6, 'url' => $flutter], ['_' => 'inputMessageEntityMentionName', 'offset' => 0, 'length' => strlen($message), 'user_id' => $mention]]]); - var_dump($sentMessage); + \danog\MadelineProto\Logger::log($sentMessage); }