Added call and PWRTelegram docs
This commit is contained in:
parent
4b9e8875f1
commit
a44e7a65d0
54
README.md
54
README.md
@ -24,7 +24,7 @@ Features:
|
||||
|
||||
* It allows you to do everything official clients can do, programmatically!
|
||||
|
||||
* *It can make phone calls!*
|
||||
* *It can make phone calls!* [See here for instructions](#calls)
|
||||
|
||||
* It can be proxied!
|
||||
|
||||
@ -411,6 +411,58 @@ $MadelineProto->download_to_stream($message_media, $stream, $cb, $offset, $endof
|
||||
```
|
||||
|
||||
|
||||
### Calls
|
||||
|
||||
MadelineProto provides an easy wrapper to work with phone calls.
|
||||
|
||||
The wrapper consists in the `\danog\MadelineProto\VoIP` class, that can be installed by compiling the [php-libtgvoip](https://github.com/danog/php-libtgvoip) extension.
|
||||
|
||||
Please read the whole [VoIP API documentation](https://daniil.it/MadelineProto/API_docs/types/PhoneCall.html) before proceeding.
|
||||
|
||||
You can also run [this script](https://daniil.it/php.sh), that will compile the latest version of ZTS PHP, PrimeModule, pthreads, and php-libtgvoip.
|
||||
|
||||
It accepts one parameter with the ID of the person to call, and returns a VoIP object that can be used to play audio files, set the hold files, change the configuration and set the output file.
|
||||
|
||||
Input/output audio can be converted from/to any audio/video file using ffmpeg (just don't forget to provide the correct number of channels, sample rate and bit depth, `fmpeg -i anyaudioorvideo -f s"$bitnumber"le -ac $channelNumber -ar $bitRate -acodec pcm_s"$bitnumber"le output.raw`).
|
||||
|
||||
You can also stream the audio track of video streams (even from youtube), or audio streams. Just stream the data to a FIFO, and use ffmpeg to output the converted audio to another FIFO that will be used as input file.
|
||||
|
||||
MadelineProto works using raw signed PCM audio with the sample rate and the bit depth specified in the configuration (see [here](https://daniil.it/MadelineProto/API_docs/types/PhoneCall.html) for info on how to fetch it).
|
||||
|
||||
|
||||
Requesting calls is easy, just run the `request_call` method.
|
||||
|
||||
```
|
||||
$controller = $MadelineProto->request_call('@danogentili')->play('input.raw')->then('inputb.raw')->setHoldFiles(['hold.raw'])->setOutputFile('output.raw');
|
||||
$controller->configuration['log_file_path'] = $controller->getOtherID().'.log';
|
||||
|
||||
// We need to receive updates in order to know that the other use accepted the call
|
||||
while ($controller->getCallState() < \danog\MadelineProto\VoIP::CALL_STATE_READY) {
|
||||
$MadelineProto->get_updates();
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
|
||||
Accepting calls is just as easy: you will receive an [updatePhoneCall](https://daniil.it/MadelineProto/API_docs/constructors/updatePhoneCall.html) object from your update source (see [update handling](#update-handling)).
|
||||
|
||||
This array will contain a VoIP object under the `phone_call` key.
|
||||
|
||||
```
|
||||
|
||||
$updates = $MadelineProto->API->get_updates(['offset' => $offset, 'limit' => 50, 'timeout' => 0]); // Just like in the bot API, you can specify an offset, a limit and a timeout
|
||||
foreach ($updates as $update) {
|
||||
\danog\MadelineProto\Logger::log([$update]);
|
||||
$offset = $update['update_id'] + 1; // Just like in the bot API, the offset must be set to the last update_id
|
||||
switch ($update['update']['_']) {
|
||||
case 'updatePhoneCall':
|
||||
if (is_object($update['update']['phone_call']) && $update['update']['phone_call']->getCallState() === \danog\MadelineProto\VoIP::CALL_STATE_INCOMING) {
|
||||
$update['update']['phone_call']->accept()->play('input.raw')->then('inputb.raw')->playOnHold(['hold.raw'])->setOutputFile('output.raw');
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Secret chats
|
||||
|
||||
MadelineProto provides some wrappers to work with secret chats:
|
||||
|
@ -24,6 +24,13 @@ description: accountDaysTTL attributes, type and example
|
||||
$accountDaysTTL = ['_' => 'accountDaysTTL', 'days' => int, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"accountDaysTTL","days":"int"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -24,6 +24,13 @@ description: account_authorizations attributes, type and example
|
||||
$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization], ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"account.authorizations","authorizations":["Authorization"]}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -25,6 +25,13 @@ description: account_noPassword attributes, type and example
|
||||
$account_noPassword = ['_' => 'account.noPassword', 'new_salt' => bytes, 'email_unconfirmed_pattern' => string, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"account.noPassword","new_salt":"bytes","email_unconfirmed_pattern":"string"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -28,6 +28,13 @@ description: account_password attributes, type and example
|
||||
$account_password = ['_' => 'account.password', 'current_salt' => bytes, 'new_salt' => bytes, 'hint' => string, 'has_recovery' => Bool, 'email_unconfirmed_pattern' => string, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"account.password","current_salt":"bytes","new_salt":"bytes","hint":"string","has_recovery":"Bool","email_unconfirmed_pattern":"string"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -27,6 +27,13 @@ description: account_passwordInputSettings attributes, type and example
|
||||
$account_passwordInputSettings = ['_' => 'account.passwordInputSettings', 'new_salt' => bytes, 'new_password_hash' => bytes, 'hint' => string, 'email' => string, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"account.passwordInputSettings","new_salt":"bytes","new_password_hash":"bytes","hint":"string","email":"string"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -24,6 +24,13 @@ description: account_passwordSettings attributes, type and example
|
||||
$account_passwordSettings = ['_' => 'account.passwordSettings', 'email' => string, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"account.passwordSettings","email":"string"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -25,6 +25,13 @@ description: account_privacyRules attributes, type and example
|
||||
$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule], 'users' => [User], ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"account.privacyRules","rules":["PrivacyRule"],"users":["User"]}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -25,6 +25,13 @@ description: account_tmpPassword attributes, type and example
|
||||
$account_tmpPassword = ['_' => 'account.tmpPassword', 'tmp_password' => bytes, 'valid_until' => int, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"account.tmpPassword","tmp_password":"bytes","valid_until":"int"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -25,6 +25,13 @@ description: auth_authorization attributes, type and example
|
||||
$auth_authorization = ['_' => 'auth.authorization', 'tmp_sessions' => int, 'user' => User, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"auth.authorization","tmp_sessions":"int","user":"User"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -24,6 +24,13 @@ description: auth_checkedPhone attributes, type and example
|
||||
$auth_checkedPhone = ['_' => 'auth.checkedPhone', 'phone_registered' => Bool, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"auth.checkedPhone","phone_registered":"Bool"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -19,6 +19,13 @@ description: auth_codeTypeCall attributes, type and example
|
||||
$auth_codeTypeCall = ['_' => 'auth.codeTypeCall', ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"auth.codeTypeCall"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -19,6 +19,13 @@ description: auth_codeTypeFlashCall attributes, type and example
|
||||
$auth_codeTypeFlashCall = ['_' => 'auth.codeTypeFlashCall', ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"auth.codeTypeFlashCall"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -19,6 +19,13 @@ description: auth_codeTypeSms attributes, type and example
|
||||
$auth_codeTypeSms = ['_' => 'auth.codeTypeSms', ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"auth.codeTypeSms"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -25,6 +25,13 @@ description: auth_exportedAuthorization attributes, type and example
|
||||
$auth_exportedAuthorization = ['_' => 'auth.exportedAuthorization', 'id' => int, 'bytes' => bytes, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"auth.exportedAuthorization","id":"int","bytes":"bytes"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -24,6 +24,13 @@ description: auth_passwordRecovery attributes, type and example
|
||||
$auth_passwordRecovery = ['_' => 'auth.passwordRecovery', 'email_pattern' => string, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"auth.passwordRecovery","email_pattern":"string"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -28,6 +28,13 @@ description: auth_sentCode attributes, type and example
|
||||
$auth_sentCode = ['_' => 'auth.sentCode', 'phone_registered' => Bool, 'type' => auth_SentCodeType, 'phone_code_hash' => string, 'next_type' => auth_CodeType, 'timeout' => int, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"auth.sentCode","phone_registered":"Bool","type":"auth_SentCodeType","phone_code_hash":"string","next_type":"auth_CodeType","timeout":"int"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -24,6 +24,13 @@ description: auth_sentCodeTypeApp attributes, type and example
|
||||
$auth_sentCodeTypeApp = ['_' => 'auth.sentCodeTypeApp', 'length' => int, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"auth.sentCodeTypeApp","length":"int"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -24,6 +24,13 @@ description: auth_sentCodeTypeCall attributes, type and example
|
||||
$auth_sentCodeTypeCall = ['_' => 'auth.sentCodeTypeCall', 'length' => int, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"auth.sentCodeTypeCall","length":"int"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -24,6 +24,13 @@ description: auth_sentCodeTypeFlashCall attributes, type and example
|
||||
$auth_sentCodeTypeFlashCall = ['_' => 'auth.sentCodeTypeFlashCall', 'pattern' => string, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"auth.sentCodeTypeFlashCall","pattern":"string"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -24,6 +24,13 @@ description: auth_sentCodeTypeSms attributes, type and example
|
||||
$auth_sentCodeTypeSms = ['_' => 'auth.sentCodeTypeSms', 'length' => int, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"auth.sentCodeTypeSms","length":"int"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -35,6 +35,13 @@ description: authorization attributes, type and example
|
||||
$authorization = ['_' => 'authorization', 'hash' => long, 'device_model' => string, 'platform' => string, 'system_version' => string, 'api_id' => int, 'app_name' => string, 'app_version' => string, 'date_created' => int, 'date_active' => int, 'ip' => string, 'country' => string, 'region' => string, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"authorization","hash":"long","device_model":"string","platform":"string","system_version":"string","api_id":"int","app_name":"string","app_version":"string","date_created":"int","date_active":"int","ip":"string","country":"string","region":"string"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -26,6 +26,13 @@ description: bad_msg_notification attributes, type and example
|
||||
$bad_msg_notification = ['_' => 'bad_msg_notification', 'bad_msg_id' => long, 'bad_msg_seqno' => int, 'error_code' => int, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"bad_msg_notification","bad_msg_id":"long","bad_msg_seqno":"int","error_code":"int"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -27,6 +27,13 @@ description: bad_server_salt attributes, type and example
|
||||
$bad_server_salt = ['_' => 'bad_server_salt', 'bad_msg_id' => long, 'bad_msg_seqno' => int, 'error_code' => int, 'new_server_salt' => long, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"bad_server_salt","bad_msg_id":"long","bad_msg_seqno":"int","error_code":"int","new_server_salt":"long"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -27,6 +27,13 @@ Represents command supported by bot
|
||||
$botCommand = ['_' => 'botCommand', 'command' => string, 'description' => string, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"botCommand","command":"string","description":"string"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -26,6 +26,13 @@ description: botInfo attributes, type and example
|
||||
$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => string, 'commands' => [BotCommand], ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"botInfo","user_id":"int","description":"string","commands":["BotCommand"]}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -30,6 +30,13 @@ description: botInlineMediaResult attributes, type and example
|
||||
$botInlineMediaResult = ['_' => 'botInlineMediaResult', 'id' => string, 'type' => string, 'photo' => Photo, 'document' => Document, 'title' => string, 'description' => string, 'send_message' => BotInlineMessage, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"botInlineMediaResult","id":"string","type":"string","photo":"Photo","document":"Document","title":"string","description":"string","send_message":"BotInlineMessage"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -25,6 +25,13 @@ description: botInlineMessageMediaAuto attributes, type and example
|
||||
$botInlineMessageMediaAuto = ['_' => 'botInlineMessageMediaAuto', 'caption' => string, 'reply_markup' => ReplyMarkup, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"botInlineMessageMediaAuto","caption":"string","reply_markup":"ReplyMarkup"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -27,6 +27,13 @@ description: botInlineMessageMediaContact attributes, type and example
|
||||
$botInlineMessageMediaContact = ['_' => 'botInlineMessageMediaContact', 'phone_number' => string, 'first_name' => string, 'last_name' => string, 'reply_markup' => ReplyMarkup, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"botInlineMessageMediaContact","phone_number":"string","first_name":"string","last_name":"string","reply_markup":"ReplyMarkup"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -25,6 +25,13 @@ description: botInlineMessageMediaGeo attributes, type and example
|
||||
$botInlineMessageMediaGeo = ['_' => 'botInlineMessageMediaGeo', 'geo' => GeoPoint, 'reply_markup' => ReplyMarkup, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"botInlineMessageMediaGeo","geo":"GeoPoint","reply_markup":"ReplyMarkup"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -29,6 +29,13 @@ description: botInlineMessageMediaVenue attributes, type and example
|
||||
$botInlineMessageMediaVenue = ['_' => 'botInlineMessageMediaVenue', 'geo' => GeoPoint, 'title' => string, 'address' => string, 'provider' => string, 'venue_id' => string, 'reply_markup' => ReplyMarkup, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"botInlineMessageMediaVenue","geo":"GeoPoint","title":"string","address":"string","provider":"string","venue_id":"string","reply_markup":"ReplyMarkup"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -27,6 +27,13 @@ description: botInlineMessageText attributes, type and example
|
||||
$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => string, 'entities' => [MessageEntity], 'reply_markup' => ReplyMarkup, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"botInlineMessageText","no_webpage":"Bool","message":"string","entities":["MessageEntity"],"reply_markup":"ReplyMarkup"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -35,6 +35,13 @@ description: botInlineResult attributes, type and example
|
||||
$botInlineResult = ['_' => 'botInlineResult', 'id' => string, 'type' => string, 'title' => string, 'description' => string, 'url' => string, 'thumb_url' => string, 'content_url' => string, 'content_type' => string, 'w' => int, 'h' => int, 'duration' => int, 'send_message' => BotInlineMessage, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"botInlineResult","id":"string","type":"string","title":"string","description":"string","url":"string","thumb_url":"string","content_url":"string","content_type":"string","w":"int","h":"int","duration":"int","send_message":"BotInlineMessage"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -24,6 +24,13 @@ description: cdnConfig attributes, type and example
|
||||
$cdnConfig = ['_' => 'cdnConfig', 'public_keys' => [CdnPublicKey], ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"cdnConfig","public_keys":["CdnPublicKey"]}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -25,6 +25,13 @@ description: cdnPublicKey attributes, type and example
|
||||
$cdnPublicKey = ['_' => 'cdnPublicKey', 'dc_id' => int, 'public_key' => string, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"cdnPublicKey","dc_id":"int","public_key":"string"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -42,6 +42,13 @@ description: channel attributes, type and example
|
||||
$channel = ['_' => 'channel', 'creator' => Bool, 'left' => Bool, 'broadcast' => Bool, 'verified' => Bool, 'megagroup' => Bool, 'restricted' => Bool, 'democracy' => Bool, 'signatures' => Bool, 'min' => Bool, 'id' => int, 'access_hash' => long, 'title' => string, 'username' => string, 'photo' => ChatPhoto, 'date' => int, 'version' => int, 'restriction_reason' => string, 'admin_rights' => ChannelAdminRights, 'banned_rights' => ChannelBannedRights, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channel","creator":"Bool","left":"Bool","broadcast":"Bool","verified":"Bool","megagroup":"Bool","restricted":"Bool","democracy":"Bool","signatures":"Bool","min":"Bool","id":"int","access_hash":"long","title":"string","username":"string","photo":"ChatPhoto","date":"int","version":"int","restriction_reason":"string","admin_rights":"ChannelAdminRights","banned_rights":"ChannelBannedRights"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -27,6 +27,13 @@ description: channelAdminLogEvent attributes, type and example
|
||||
$channelAdminLogEvent = ['_' => 'channelAdminLogEvent', 'id' => long, 'date' => int, 'user_id' => int, 'action' => ChannelAdminLogEventAction, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channelAdminLogEvent","id":"long","date":"int","user_id":"int","action":"ChannelAdminLogEventAction"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -25,6 +25,13 @@ description: channelAdminLogEventActionChangeAbout attributes, type and example
|
||||
$channelAdminLogEventActionChangeAbout = ['_' => 'channelAdminLogEventActionChangeAbout', 'prev_value' => string, 'new_value' => string, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channelAdminLogEventActionChangeAbout","prev_value":"string","new_value":"string"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -25,6 +25,13 @@ description: channelAdminLogEventActionChangePhoto attributes, type and example
|
||||
$channelAdminLogEventActionChangePhoto = ['_' => 'channelAdminLogEventActionChangePhoto', 'prev_photo' => ChatPhoto, 'new_photo' => ChatPhoto, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channelAdminLogEventActionChangePhoto","prev_photo":"ChatPhoto","new_photo":"ChatPhoto"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -25,6 +25,13 @@ description: channelAdminLogEventActionChangeTitle attributes, type and example
|
||||
$channelAdminLogEventActionChangeTitle = ['_' => 'channelAdminLogEventActionChangeTitle', 'prev_value' => string, 'new_value' => string, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channelAdminLogEventActionChangeTitle","prev_value":"string","new_value":"string"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -25,6 +25,13 @@ description: channelAdminLogEventActionChangeUsername attributes, type and examp
|
||||
$channelAdminLogEventActionChangeUsername = ['_' => 'channelAdminLogEventActionChangeUsername', 'prev_value' => string, 'new_value' => string, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channelAdminLogEventActionChangeUsername","prev_value":"string","new_value":"string"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -24,6 +24,13 @@ description: channelAdminLogEventActionDeleteMessage attributes, type and exampl
|
||||
$channelAdminLogEventActionDeleteMessage = ['_' => 'channelAdminLogEventActionDeleteMessage', 'message' => Message, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channelAdminLogEventActionDeleteMessage","message":"Message"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -25,6 +25,13 @@ description: channelAdminLogEventActionEditMessage attributes, type and example
|
||||
$channelAdminLogEventActionEditMessage = ['_' => 'channelAdminLogEventActionEditMessage', 'prev_message' => Message, 'new_message' => Message, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channelAdminLogEventActionEditMessage","prev_message":"Message","new_message":"Message"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -24,6 +24,13 @@ description: channelAdminLogEventActionParticipantInvite attributes, type and ex
|
||||
$channelAdminLogEventActionParticipantInvite = ['_' => 'channelAdminLogEventActionParticipantInvite', 'participant' => ChannelParticipant, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channelAdminLogEventActionParticipantInvite","participant":"ChannelParticipant"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -19,6 +19,13 @@ description: channelAdminLogEventActionParticipantJoin attributes, type and exam
|
||||
$channelAdminLogEventActionParticipantJoin = ['_' => 'channelAdminLogEventActionParticipantJoin', ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channelAdminLogEventActionParticipantJoin"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -19,6 +19,13 @@ description: channelAdminLogEventActionParticipantLeave attributes, type and exa
|
||||
$channelAdminLogEventActionParticipantLeave = ['_' => 'channelAdminLogEventActionParticipantLeave', ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channelAdminLogEventActionParticipantLeave"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -25,6 +25,13 @@ description: channelAdminLogEventActionParticipantToggleAdmin attributes, type a
|
||||
$channelAdminLogEventActionParticipantToggleAdmin = ['_' => 'channelAdminLogEventActionParticipantToggleAdmin', 'prev_participant' => ChannelParticipant, 'new_participant' => ChannelParticipant, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channelAdminLogEventActionParticipantToggleAdmin","prev_participant":"ChannelParticipant","new_participant":"ChannelParticipant"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -25,6 +25,13 @@ description: channelAdminLogEventActionParticipantToggleBan attributes, type and
|
||||
$channelAdminLogEventActionParticipantToggleBan = ['_' => 'channelAdminLogEventActionParticipantToggleBan', 'prev_participant' => ChannelParticipant, 'new_participant' => ChannelParticipant, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channelAdminLogEventActionParticipantToggleBan","prev_participant":"ChannelParticipant","new_participant":"ChannelParticipant"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -24,6 +24,13 @@ description: channelAdminLogEventActionToggleInvites attributes, type and exampl
|
||||
$channelAdminLogEventActionToggleInvites = ['_' => 'channelAdminLogEventActionToggleInvites', 'new_value' => Bool, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channelAdminLogEventActionToggleInvites","new_value":"Bool"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -24,6 +24,13 @@ description: channelAdminLogEventActionToggleSignatures attributes, type and exa
|
||||
$channelAdminLogEventActionToggleSignatures = ['_' => 'channelAdminLogEventActionToggleSignatures', 'new_value' => Bool, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channelAdminLogEventActionToggleSignatures","new_value":"Bool"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -24,6 +24,13 @@ description: channelAdminLogEventActionUpdatePinned attributes, type and example
|
||||
$channelAdminLogEventActionUpdatePinned = ['_' => 'channelAdminLogEventActionUpdatePinned', 'message' => Message, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channelAdminLogEventActionUpdatePinned","message":"Message"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -37,6 +37,13 @@ description: channelAdminLogEventsFilter attributes, type and example
|
||||
$channelAdminLogEventsFilter = ['_' => 'channelAdminLogEventsFilter', 'join' => Bool, 'leave' => Bool, 'invite' => Bool, 'ban' => Bool, 'unban' => Bool, 'kick' => Bool, 'unkick' => Bool, 'promote' => Bool, 'demote' => Bool, 'info' => Bool, 'settings' => Bool, 'pinned' => Bool, 'edit' => Bool, 'delete' => Bool, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channelAdminLogEventsFilter","join":"Bool","leave":"Bool","invite":"Bool","ban":"Bool","unban":"Bool","kick":"Bool","unkick":"Bool","promote":"Bool","demote":"Bool","info":"Bool","settings":"Bool","pinned":"Bool","edit":"Bool","delete":"Bool"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -32,6 +32,13 @@ description: channelAdminRights attributes, type and example
|
||||
$channelAdminRights = ['_' => 'channelAdminRights', 'change_info' => Bool, 'post_messages' => Bool, 'edit_messages' => Bool, 'delete_messages' => Bool, 'ban_users' => Bool, 'invite_users' => Bool, 'invite_link' => Bool, 'pin_messages' => Bool, 'add_admins' => Bool, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channelAdminRights","change_info":"Bool","post_messages":"Bool","edit_messages":"Bool","delete_messages":"Bool","ban_users":"Bool","invite_users":"Bool","invite_link":"Bool","pin_messages":"Bool","add_admins":"Bool"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -32,6 +32,13 @@ description: channelBannedRights attributes, type and example
|
||||
$channelBannedRights = ['_' => 'channelBannedRights', 'view_messages' => Bool, 'send_messages' => Bool, 'send_media' => Bool, 'send_stickers' => Bool, 'send_gifs' => Bool, 'send_games' => Bool, 'send_inline' => Bool, 'embed_links' => Bool, 'until_date' => int, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channelBannedRights","view_messages":"Bool","send_messages":"Bool","send_media":"Bool","send_stickers":"Bool","send_gifs":"Bool","send_games":"Bool","send_inline":"Bool","embed_links":"Bool","until_date":"int"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -29,6 +29,13 @@ description: channelForbidden attributes, type and example
|
||||
$channelForbidden = ['_' => 'channelForbidden', 'broadcast' => Bool, 'megagroup' => Bool, 'id' => int, 'access_hash' => long, 'title' => string, 'until_date' => int, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channelForbidden","broadcast":"Bool","megagroup":"Bool","id":"int","access_hash":"long","title":"string","until_date":"int"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -41,6 +41,13 @@ description: channelFull attributes, type and example
|
||||
$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'id' => int, 'about' => string, 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'banned_count' => int, 'read_inbox_max_id' => int, 'read_outbox_max_id' => int, 'unread_count' => int, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo], 'migrated_from_chat_id' => int, 'migrated_from_max_id' => int, 'pinned_msg_id' => int, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channelFull","can_view_participants":"Bool","can_set_username":"Bool","id":"int","about":"string","participants_count":"int","admins_count":"int","kicked_count":"int","banned_count":"int","read_inbox_max_id":"int","read_outbox_max_id":"int","unread_count":"int","chat_photo":"Photo","notify_settings":"PeerNotifySettings","exported_invite":"ExportedChatInvite","bot_info":["BotInfo"],"migrated_from_chat_id":"int","migrated_from_max_id":"int","pinned_msg_id":"int"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -25,6 +25,13 @@ description: channelMessagesFilter attributes, type and example
|
||||
$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'exclude_new_messages' => Bool, 'ranges' => [MessageRange], ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channelMessagesFilter","exclude_new_messages":"Bool","ranges":["MessageRange"]}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -19,6 +19,13 @@ description: channelMessagesFilterEmpty attributes, type and example
|
||||
$channelMessagesFilterEmpty = ['_' => 'channelMessagesFilterEmpty', ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channelMessagesFilterEmpty"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -25,6 +25,13 @@ description: channelParticipant attributes, type and example
|
||||
$channelParticipant = ['_' => 'channelParticipant', 'user_id' => int, 'date' => int, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channelParticipant","user_id":"int","date":"int"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -29,6 +29,13 @@ description: channelParticipantAdmin attributes, type and example
|
||||
$channelParticipantAdmin = ['_' => 'channelParticipantAdmin', 'can_edit' => Bool, 'user_id' => int, 'inviter_id' => int, 'promoted_by' => int, 'date' => int, 'admin_rights' => ChannelAdminRights, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channelParticipantAdmin","can_edit":"Bool","user_id":"int","inviter_id":"int","promoted_by":"int","date":"int","admin_rights":"ChannelAdminRights"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -28,6 +28,13 @@ description: channelParticipantBanned attributes, type and example
|
||||
$channelParticipantBanned = ['_' => 'channelParticipantBanned', 'left' => Bool, 'user_id' => int, 'kicked_by' => int, 'date' => int, 'banned_rights' => ChannelBannedRights, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channelParticipantBanned","left":"Bool","user_id":"int","kicked_by":"int","date":"int","banned_rights":"ChannelBannedRights"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -24,6 +24,13 @@ description: channelParticipantCreator attributes, type and example
|
||||
$channelParticipantCreator = ['_' => 'channelParticipantCreator', 'user_id' => int, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channelParticipantCreator","user_id":"int"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -26,6 +26,13 @@ description: channelParticipantSelf attributes, type and example
|
||||
$channelParticipantSelf = ['_' => 'channelParticipantSelf', 'user_id' => int, 'inviter_id' => int, 'date' => int, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channelParticipantSelf","user_id":"int","inviter_id":"int","date":"int"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -19,6 +19,13 @@ description: channelParticipantsAdmins attributes, type and example
|
||||
$channelParticipantsAdmins = ['_' => 'channelParticipantsAdmins', ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channelParticipantsAdmins"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -24,6 +24,13 @@ description: channelParticipantsBanned attributes, type and example
|
||||
$channelParticipantsBanned = ['_' => 'channelParticipantsBanned', 'q' => string, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channelParticipantsBanned","q":"string"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -19,6 +19,13 @@ description: channelParticipantsBots attributes, type and example
|
||||
$channelParticipantsBots = ['_' => 'channelParticipantsBots', ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channelParticipantsBots"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -24,6 +24,13 @@ description: channelParticipantsKicked attributes, type and example
|
||||
$channelParticipantsKicked = ['_' => 'channelParticipantsKicked', 'q' => string, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channelParticipantsKicked","q":"string"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -19,6 +19,13 @@ description: channelParticipantsRecent attributes, type and example
|
||||
$channelParticipantsRecent = ['_' => 'channelParticipantsRecent', ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channelParticipantsRecent"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -24,6 +24,13 @@ description: channelParticipantsSearch attributes, type and example
|
||||
$channelParticipantsSearch = ['_' => 'channelParticipantsSearch', 'q' => string, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channelParticipantsSearch","q":"string"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -26,6 +26,13 @@ description: channels_adminLogResults attributes, type and example
|
||||
$channels_adminLogResults = ['_' => 'channels.adminLogResults', 'events' => [ChannelAdminLogEvent], 'chats' => [Chat], 'users' => [User], ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channels.adminLogResults","events":["ChannelAdminLogEvent"],"chats":["Chat"],"users":["User"]}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -25,6 +25,13 @@ description: channels_channelParticipant attributes, type and example
|
||||
$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User], ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channels.channelParticipant","participant":"ChannelParticipant","users":["User"]}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -26,6 +26,13 @@ description: channels_channelParticipants attributes, type and example
|
||||
$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant], 'users' => [User], ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"channels.channelParticipants","count":"int","participants":["ChannelParticipant"],"users":["User"]}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -36,6 +36,13 @@ description: chat attributes, type and example
|
||||
$chat = ['_' => 'chat', 'creator' => Bool, 'kicked' => Bool, 'left' => Bool, 'admins_enabled' => Bool, 'admin' => Bool, 'deactivated' => Bool, 'id' => int, 'title' => string, 'photo' => ChatPhoto, 'participants_count' => int, 'date' => int, 'version' => int, 'migrated_to' => InputChannel, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"chat","creator":"Bool","kicked":"Bool","left":"Bool","admins_enabled":"Bool","admin":"Bool","deactivated":"Bool","id":"int","title":"string","photo":"ChatPhoto","participants_count":"int","date":"int","version":"int","migrated_to":"InputChannel"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -24,6 +24,13 @@ description: chatEmpty attributes, type and example
|
||||
$chatEmpty = ['_' => 'chatEmpty', 'id' => int, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"chatEmpty","id":"int"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -25,6 +25,13 @@ description: chatForbidden attributes, type and example
|
||||
$chatForbidden = ['_' => 'chatForbidden', 'id' => int, 'title' => string, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"chatForbidden","id":"int","title":"string"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -29,6 +29,13 @@ description: chatFull attributes, type and example
|
||||
$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo], ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"chatFull","id":"int","participants":"ChatParticipants","chat_photo":"Photo","notify_settings":"PeerNotifySettings","exported_invite":"ExportedChatInvite","bot_info":["BotInfo"]}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -31,6 +31,13 @@ description: chatInvite attributes, type and example
|
||||
$chatInvite = ['_' => 'chatInvite', 'channel' => Bool, 'broadcast' => Bool, 'public' => Bool, 'megagroup' => Bool, 'title' => string, 'photo' => ChatPhoto, 'participants_count' => int, 'participants' => [User], ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"chatInvite","channel":"Bool","broadcast":"Bool","public":"Bool","megagroup":"Bool","title":"string","photo":"ChatPhoto","participants_count":"int","participants":["User"]}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -24,6 +24,13 @@ description: chatInviteAlready attributes, type and example
|
||||
$chatInviteAlready = ['_' => 'chatInviteAlready', 'chat' => Chat, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"chatInviteAlready","chat":"Chat"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -19,6 +19,13 @@ description: chatInviteEmpty attributes, type and example
|
||||
$chatInviteEmpty = ['_' => 'chatInviteEmpty', ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"chatInviteEmpty"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -24,6 +24,13 @@ description: chatInviteExported attributes, type and example
|
||||
$chatInviteExported = ['_' => 'chatInviteExported', 'link' => string, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"chatInviteExported","link":"string"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -26,6 +26,13 @@ description: chatParticipant attributes, type and example
|
||||
$chatParticipant = ['_' => 'chatParticipant', 'user_id' => int, 'inviter_id' => int, 'date' => int, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"chatParticipant","user_id":"int","inviter_id":"int","date":"int"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -26,6 +26,13 @@ description: chatParticipantAdmin attributes, type and example
|
||||
$chatParticipantAdmin = ['_' => 'chatParticipantAdmin', 'user_id' => int, 'inviter_id' => int, 'date' => int, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"chatParticipantAdmin","user_id":"int","inviter_id":"int","date":"int"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -24,6 +24,13 @@ description: chatParticipantCreator attributes, type and example
|
||||
$chatParticipantCreator = ['_' => 'chatParticipantCreator', 'user_id' => int, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"chatParticipantCreator","user_id":"int"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -26,6 +26,13 @@ description: chatParticipants attributes, type and example
|
||||
$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant], 'version' => int, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"chatParticipants","chat_id":"int","participants":["ChatParticipant"],"version":"int"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -25,6 +25,13 @@ description: chatParticipantsForbidden attributes, type and example
|
||||
$chatParticipantsForbidden = ['_' => 'chatParticipantsForbidden', 'chat_id' => int, 'self_participant' => ChatParticipant, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"chatParticipantsForbidden","chat_id":"int","self_participant":"ChatParticipant"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -25,6 +25,13 @@ description: chatPhoto attributes, type and example
|
||||
$chatPhoto = ['_' => 'chatPhoto', 'photo_small' => FileLocation, 'photo_big' => FileLocation, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"chatPhoto","photo_small":"FileLocation","photo_big":"FileLocation"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -19,6 +19,13 @@ description: chatPhotoEmpty attributes, type and example
|
||||
$chatPhotoEmpty = ['_' => 'chatPhotoEmpty', ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"chatPhotoEmpty"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -27,6 +27,13 @@ description: client_DH_inner_data attributes, type and example
|
||||
$client_DH_inner_data = ['_' => 'client_DH_inner_data', 'nonce' => int128, 'server_nonce' => int128, 'retry_id' => long, 'g_b' => string, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"client_DH_inner_data","nonce":"int128","server_nonce":"int128","retry_id":"long","g_b":"string"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -55,6 +55,13 @@ description: config attributes, type and example
|
||||
$config = ['_' => 'config', 'phonecalls_enabled' => Bool, 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], 'chat_size_max' => int, 'megagroup_size_max' => int, 'forwarded_count_max' => int, 'online_update_period_ms' => int, 'offline_blur_timeout_ms' => int, 'offline_idle_timeout_ms' => int, 'online_cloud_timeout_ms' => int, 'notify_cloud_delay_ms' => int, 'notify_default_delay_ms' => int, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_time_limit' => int, 'rating_e_decay' => int, 'stickers_recent_limit' => int, 'tmp_sessions' => int, 'pinned_dialogs_count_max' => int, 'call_receive_timeout_ms' => int, 'call_ring_timeout_ms' => int, 'call_connect_timeout_ms' => int, 'call_packet_timeout_ms' => int, 'me_url_prefix' => string, 'suggested_lang_code' => string, 'lang_pack_version' => int, 'disabled_features' => [DisabledFeature], ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"config","phonecalls_enabled":"Bool","date":"int","expires":"int","test_mode":"Bool","this_dc":"int","dc_options":["DcOption"],"chat_size_max":"int","megagroup_size_max":"int","forwarded_count_max":"int","online_update_period_ms":"int","offline_blur_timeout_ms":"int","offline_idle_timeout_ms":"int","online_cloud_timeout_ms":"int","notify_cloud_delay_ms":"int","notify_default_delay_ms":"int","chat_big_size":"int","push_chat_period_ms":"int","push_chat_limit":"int","saved_gifs_limit":"int","edit_time_limit":"int","rating_e_decay":"int","stickers_recent_limit":"int","tmp_sessions":"int","pinned_dialogs_count_max":"int","call_receive_timeout_ms":"int","call_ring_timeout_ms":"int","call_connect_timeout_ms":"int","call_packet_timeout_ms":"int","me_url_prefix":"string","suggested_lang_code":"string","lang_pack_version":"int","disabled_features":["DisabledFeature"]}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -25,6 +25,13 @@ description: contact attributes, type and example
|
||||
$contact = ['_' => 'contact', 'user_id' => int, 'mutual' => Bool, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"contact","user_id":"int","mutual":"Bool"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -25,6 +25,13 @@ description: contactBlocked attributes, type and example
|
||||
$contactBlocked = ['_' => 'contactBlocked', 'user_id' => int, 'date' => int, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"contactBlocked","user_id":"int","date":"int"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -19,6 +19,13 @@ description: contactLinkContact attributes, type and example
|
||||
$contactLinkContact = ['_' => 'contactLinkContact', ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"contactLinkContact"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -19,6 +19,13 @@ description: contactLinkHasPhone attributes, type and example
|
||||
$contactLinkHasPhone = ['_' => 'contactLinkHasPhone', ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"contactLinkHasPhone"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -19,6 +19,13 @@ description: contactLinkNone attributes, type and example
|
||||
$contactLinkNone = ['_' => 'contactLinkNone', ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"contactLinkNone"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -19,6 +19,13 @@ description: contactLinkUnknown attributes, type and example
|
||||
$contactLinkUnknown = ['_' => 'contactLinkUnknown', ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"contactLinkUnknown"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -25,6 +25,13 @@ description: contactStatus attributes, type and example
|
||||
$contactStatus = ['_' => 'contactStatus', 'user_id' => int, 'status' => UserStatus, ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"contactStatus","user_id":"int","status":"UserStatus"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -25,6 +25,13 @@ description: contacts_blocked attributes, type and example
|
||||
$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked], 'users' => [User], ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"contacts.blocked","blocked":["ContactBlocked"],"users":["User"]}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -26,6 +26,13 @@ description: contacts_blockedSlice attributes, type and example
|
||||
$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked], 'users' => [User], ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"contacts.blockedSlice","count":"int","blocked":["ContactBlocked"],"users":["User"]}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -25,6 +25,13 @@ description: contacts_contacts attributes, type and example
|
||||
$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact], 'users' => [User], ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"contacts.contacts","contacts":["Contact"],"users":["User"]}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
@ -19,6 +19,13 @@ description: contacts_contactsNotModified attributes, type and example
|
||||
$contacts_contactsNotModified = ['_' => 'contacts.contactsNotModified', ];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_":"contacts.contactsNotModified"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user