Working on updates

This commit is contained in:
Daniil Gentili 2016-12-24 17:20:45 +01:00
parent f0f8ae56bf
commit 34865686da
175 changed files with 1676 additions and 371 deletions

View File

@ -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)

View File

@ -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.

View File

@ -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', ];
```
Represents a `null` value.

View File

@ -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)

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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)

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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)

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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)

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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)

View File

@ -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):

View File

@ -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):

View File

@ -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)

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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)

View File

@ -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)

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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)

View File

@ -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):

View File

@ -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):

View File

@ -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)

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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)

View File

@ -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)

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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)

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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)

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

Some files were not shown because too many files have changed in this diff Show More