Clearer examples

This commit is contained in:
Daniil Gentili 2018-03-20 19:57:36 +01:00
parent c156beb00e
commit 5d57935c37
3817 changed files with 7724 additions and 7724 deletions

View File

@ -29,7 +29,7 @@ Change the phone number associated to this account
|PHONE_NUMBER_INVALID|The phone number is invalid|
### Example:
### MadelineProto Example:
```
@ -49,7 +49,7 @@ $MadelineProto->start();
$User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -27,7 +27,7 @@ Check if this username is available
|USERNAME_INVALID|The provided username is not valid|
### Example:
### MadelineProto Example:
```
@ -47,7 +47,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -29,7 +29,7 @@ Confirm this phone number is associated to this account, obtain phone_code_hash
|PHONE_CODE_EMPTY|phone_code is missing|
### Example:
### MadelineProto Example:
```
@ -49,7 +49,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->account->confirmPhone(['phone_code_hash' => 'string', 'phone_code' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -20,7 +20,7 @@ Delete this account
### Can bots use this method: **NO**
### Example:
### MadelineProto Example:
```
@ -40,7 +40,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -15,7 +15,7 @@ Get account TTL
### Can bots use this method: **NO**
### Example:
### MadelineProto Example:
```
@ -35,7 +35,7 @@ $MadelineProto->start();
$AccountDaysTTL = $MadelineProto->account->getAccountTTL();
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -15,7 +15,7 @@ Get all logged-in authorizations
### Can bots use this method: **NO**
### Example:
### MadelineProto Example:
```
@ -35,7 +35,7 @@ $MadelineProto->start();
$account_Authorizations = $MadelineProto->account->getAuthorizations();
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -27,7 +27,7 @@ Get notification settings
|PEER_ID_INVALID|The provided peer id is invalid|
### Example:
### MadelineProto Example:
```
@ -47,7 +47,7 @@ $MadelineProto->start();
$PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -15,7 +15,7 @@ Get the current password
### Can bots use this method: **NO**
### Example:
### MadelineProto Example:
```
@ -35,7 +35,7 @@ $MadelineProto->start();
$account_Password = $MadelineProto->account->getPassword();
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -27,7 +27,7 @@ Get the current 2FA settings
|PASSWORD_HASH_INVALID|The provided password hash is invalid|
### Example:
### MadelineProto Example:
```
@ -47,7 +47,7 @@ $MadelineProto->start();
$account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -27,7 +27,7 @@ Get privacy settings
|PRIVACY_KEY_INVALID|The privacy key is invalid|
### Example:
### MadelineProto Example:
```
@ -47,7 +47,7 @@ $MadelineProto->start();
$account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -29,7 +29,7 @@ Get temporary password for buying products through bots
|TMP_PASSWORD_DISABLED|The temporary password is disabled|
### Example:
### MadelineProto Example:
```
@ -49,7 +49,7 @@ $MadelineProto->start();
$account_TmpPassword = $MadelineProto->account->getTmpPassword(['password_hash' => 'bytes', 'period' => int, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -15,7 +15,7 @@ Returns a list of available wallpapers.
### Can bots use this method: **NO**
### Example:
### MadelineProto Example:
```
@ -35,7 +35,7 @@ $MadelineProto->start();
$Vector_of_WallPaper = $MadelineProto->account->getWallPapers();
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -15,7 +15,7 @@ Get telegram web login authorizations
### Can bots use this method: **YES**
### Example:
### MadelineProto Example:
```
@ -35,7 +35,7 @@ $MadelineProto->start();
$account_WebAuthorizations = $MadelineProto->account->getWebAuthorizations();
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:

View File

@ -30,7 +30,7 @@ Register device for push notifications
|TOKEN_INVALID|The provided token is invalid|
### Example:
### MadelineProto Example:
```
@ -50,7 +50,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', 'app_sandbox' => Bool, 'other_uids' => [int, int], ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -28,7 +28,7 @@ Report for spam
|PEER_ID_INVALID|The provided peer id is invalid|
### Example:
### MadelineProto Example:
```
@ -48,7 +48,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -27,7 +27,7 @@ Delete a certain session
|HASH_INVALID|The provided hash is invalid|
### Example:
### MadelineProto Example:
```
@ -47,7 +47,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -15,7 +15,7 @@ Reset all notification settings
### Can bots use this method: **NO**
### Example:
### MadelineProto Example:
```
@ -35,7 +35,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->account->resetNotifySettings();
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -20,7 +20,7 @@ Delete a certain telegram web login authorization
### Can bots use this method: **YES**
### Example:
### MadelineProto Example:
```
@ -40,7 +40,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->account->resetWebAuthorization(['hash' => long, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:

View File

@ -15,7 +15,7 @@ Reset all telegram web login authorizations
### Can bots use this method: **YES**
### Example:
### MadelineProto Example:
```
@ -35,7 +35,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->account->resetWebAuthorizations();
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:

View File

@ -29,7 +29,7 @@ Change the phone number
|PHONE_NUMBER_INVALID|The phone number is invalid|
### Example:
### MadelineProto Example:
```
@ -49,7 +49,7 @@ $MadelineProto->start();
$auth_SentCode = $MadelineProto->account->sendChangePhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -29,7 +29,7 @@ Send confirmation phone code
|HASH_INVALID|The provided hash is invalid|
### Example:
### MadelineProto Example:
```
@ -49,7 +49,7 @@ $MadelineProto->start();
$auth_SentCode = $MadelineProto->account->sendConfirmPhoneCode(['allow_flashcall' => Bool, 'hash' => 'string', 'current_number' => Bool, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -27,7 +27,7 @@ Set account TTL
|TTL_DAYS_INVALID|The provided TTL is invalid|
### Example:
### MadelineProto Example:
```
@ -47,7 +47,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -28,7 +28,7 @@ Set privacy settings
|PRIVACY_KEY_INVALID|The privacy key is invalid|
### Example:
### MadelineProto Example:
```
@ -48,7 +48,7 @@ $MadelineProto->start();
$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -29,7 +29,7 @@ Stop sending PUSH notifications to app
|TOKEN_INVALID|The provided token is invalid|
### Example:
### MadelineProto Example:
```
@ -49,7 +49,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', 'other_uids' => [int, int], ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -20,7 +20,7 @@ Disable all notifications for a certain period
### Can bots use this method: **NO**
### Example:
### MadelineProto Example:
```
@ -40,7 +40,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -28,7 +28,7 @@ Change notification settings
|PEER_ID_INVALID|The provided peer id is invalid|
### Example:
### MadelineProto Example:
```
@ -48,7 +48,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -31,7 +31,7 @@ Update the 2FA password settings
|PASSWORD_HASH_INVALID|The provided password hash is invalid|
### Example:
### MadelineProto Example:
```
@ -51,7 +51,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -30,7 +30,7 @@ Update profile info
|FIRSTNAME_INVALID|The first name is invalid|
### Example:
### MadelineProto Example:
```
@ -50,7 +50,7 @@ $MadelineProto->start();
$User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', 'about' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -27,7 +27,7 @@ Update online status
|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|
### Example:
### MadelineProto Example:
```
@ -47,7 +47,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -29,7 +29,7 @@ Update this user's username
|USERNAME_OCCUPIED|The provided username is already occupied|
### Example:
### MadelineProto Example:
```
@ -49,7 +49,7 @@ $MadelineProto->start();
$User = $MadelineProto->account->updateUsername(['username' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -28,7 +28,7 @@ Invalidate sent phone code
|PHONE_NUMBER_INVALID|The phone number is invalid|
### Example:
### MadelineProto Example:
```
@ -48,7 +48,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->auth->cancelCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -29,7 +29,7 @@ Check if this phone number is registered on telegram
|PHONE_NUMBER_INVALID|The phone number is invalid|
### Example:
### MadelineProto Example:
```
@ -49,7 +49,7 @@ $MadelineProto->start();
$auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -20,7 +20,7 @@ Delete all temporary authorization keys except the ones provided
### Can bots use this method: **YES**
### Example:
### MadelineProto Example:
```
@ -40,7 +40,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->auth->dropTempAuthKeys(['except_auth_keys' => [long, long], ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:

View File

@ -27,7 +27,7 @@ Use the code that was emailed to you after running $MadelineProto->auth->request
|CODE_EMPTY|The provided code is empty|
### Example:
### MadelineProto Example:
```
@ -47,7 +47,7 @@ $MadelineProto->start();
$auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -22,7 +22,7 @@ Send an email to recover the 2FA password
|PASSWORD_EMPTY|The provided password is empty|
### Example:
### MadelineProto Example:
```
@ -42,7 +42,7 @@ $MadelineProto->start();
$auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery();
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -28,7 +28,7 @@ Resend the SMS verification code
|PHONE_NUMBER_INVALID|The phone number is invalid|
### Example:
### MadelineProto Example:
```
@ -48,7 +48,7 @@ $MadelineProto->start();
$auth_SentCode = $MadelineProto->auth->resendCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -22,7 +22,7 @@ Delete all logged-in sessions.
|Timeout|A timeout occurred while fetching data from the bot|
### Example:
### MadelineProto Example:
```
@ -42,7 +42,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->auth->resetAuthorizations();
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -28,7 +28,7 @@ Invite friends to telegram!
|MESSAGE_EMPTY|The provided message is empty|
### Example:
### MadelineProto Example:
```
@ -48,7 +48,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -27,7 +27,7 @@ description: bots.answerWebhookJSONQuery parameters, return type and example
|USER_BOT_INVALID|This method can only be called by a bot|
### Example:
### MadelineProto Example:
```
@ -47,7 +47,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->bots->answerWebhookJSONQuery(['query_id' => long, 'data' => DataJSON, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:

View File

@ -26,7 +26,7 @@ description: bots.sendCustomRequest parameters, return type and example
|USER_BOT_INVALID|This method can only be called by a bot|
### Example:
### MadelineProto Example:
```
@ -46,7 +46,7 @@ $MadelineProto->start();
$DataJSON = $MadelineProto->bots->sendCustomRequest(['custom_method' => 'string', 'params' => DataJSON, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:

View File

@ -28,7 +28,7 @@ description: channels.checkUsername parameters, return type and example
|USERNAME_INVALID|The provided username is not valid|
### Example:
### MadelineProto Example:
```
@ -48,7 +48,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -29,7 +29,7 @@ description: channels.createChannel parameters, return type and example
|USER_RESTRICTED|You're spamreported, you can't create channels or chats.|
### Example:
### MadelineProto Example:
```
@ -49,7 +49,7 @@ $MadelineProto->start();
$Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -26,7 +26,7 @@ description: channels.deleteChannel parameters, return type and example
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
### Example:
### MadelineProto Example:
```
@ -46,7 +46,7 @@ $MadelineProto->start();
$Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -19,7 +19,7 @@ description: channels.deleteHistory parameters, return type and example
### Can bots use this method: **YES**
### Example:
### MadelineProto Example:
```
@ -39,7 +39,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->channels->deleteHistory(['channel' => InputChannel, 'max_id' => int, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:

View File

@ -28,7 +28,7 @@ description: channels.deleteMessages parameters, return type and example
|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.|
### Example:
### MadelineProto Example:
```
@ -48,7 +48,7 @@ $MadelineProto->start();
$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:

View File

@ -27,7 +27,7 @@ description: channels.deleteUserHistory parameters, return type and example
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
### Example:
### MadelineProto Example:
```
@ -47,7 +47,7 @@ $MadelineProto->start();
$messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -29,7 +29,7 @@ description: channels.editAbout parameters, return type and example
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
### Example:
### MadelineProto Example:
```
@ -49,7 +49,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:

View File

@ -36,7 +36,7 @@ description: channels.editAdmin parameters, return type and example
|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this|
### Example:
### MadelineProto Example:
```
@ -56,7 +56,7 @@ $MadelineProto->start();
$Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'admin_rights' => ChannelAdminRights, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:

View File

@ -31,7 +31,7 @@ description: channels.editBanned parameters, return type and example
|USER_ID_INVALID|The provided user ID is invalid|
### Example:
### MadelineProto Example:
```
@ -51,7 +51,7 @@ $MadelineProto->start();
$Updates = $MadelineProto->channels->editBanned(['channel' => InputChannel, 'user_id' => InputUser, 'banned_rights' => ChannelBannedRights, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:

View File

@ -28,7 +28,7 @@ description: channels.editPhoto parameters, return type and example
|PHOTO_INVALID|Photo invalid|
### Example:
### MadelineProto Example:
```
@ -48,7 +48,7 @@ $MadelineProto->start();
$Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:

View File

@ -28,7 +28,7 @@ description: channels.editTitle parameters, return type and example
|CHAT_NOT_MODIFIED|The pinned message wasn't modified|
### Example:
### MadelineProto Example:
```
@ -48,7 +48,7 @@ $MadelineProto->start();
$Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:

View File

@ -27,7 +27,7 @@ description: channels.exportInvite parameters, return type and example
|INVITE_HASH_EXPIRED|The invite link has expired|
### Example:
### MadelineProto Example:
```
@ -47,7 +47,7 @@ $MadelineProto->start();
$ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:

View File

@ -27,7 +27,7 @@ description: channels.exportMessageLink parameters, return type and example
|CHANNEL_INVALID|The provided channel is invalid|
### Example:
### MadelineProto Example:
```
@ -47,7 +47,7 @@ $MadelineProto->start();
$ExportedMessageLink = $MadelineProto->channels->exportMessageLink(['channel' => InputChannel, 'id' => int, 'grouped' => Bool, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -33,7 +33,7 @@ description: channels.getAdminLog parameters, return type and example
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
### Example:
### MadelineProto Example:
```
@ -53,7 +53,7 @@ $MadelineProto->start();
$channels_AdminLogResults = $MadelineProto->channels->getAdminLog(['channel' => InputChannel, 'q' => 'string', 'events_filter' => ChannelAdminLogEventsFilter, 'admins' => [InputUser, InputUser], 'max_id' => long, 'min_id' => long, 'limit' => int, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -13,7 +13,7 @@ description: channels.getAdminedPublicChannels parameters, return type and examp
### Can bots use this method: **NO**
### Example:
### MadelineProto Example:
```
@ -33,7 +33,7 @@ $MadelineProto->start();
$messages_Chats = $MadelineProto->channels->getAdminedPublicChannels();
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -27,7 +27,7 @@ description: channels.getChannels parameters, return type and example
|NEED_CHAT_INVALID|The provided chat is invalid|
### Example:
### MadelineProto Example:
```
@ -47,7 +47,7 @@ $MadelineProto->start();
$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:

View File

@ -28,7 +28,7 @@ description: channels.getMessages parameters, return type and example
|MESSAGE_IDS_EMPTY|No message ids were provided|
### Example:
### MadelineProto Example:
```
@ -48,7 +48,7 @@ $MadelineProto->start();
$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [InputMessage, InputMessage], ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:

View File

@ -30,7 +30,7 @@ description: channels.getParticipant parameters, return type and example
|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel|
### Example:
### MadelineProto Example:
```
@ -50,7 +50,7 @@ $MadelineProto->start();
$channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:

View File

@ -33,7 +33,7 @@ description: channels.getParticipants parameters, return type and example
|Timeout|A timeout occurred while fetching data from the bot|
### Example:
### MadelineProto Example:
```
@ -53,7 +53,7 @@ $MadelineProto->start();
$channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, 'hash' => int, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:

View File

@ -41,7 +41,7 @@ description: channels.inviteToChannel parameters, return type and example
|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this|
### Example:
### MadelineProto Example:
```
@ -61,7 +61,7 @@ $MadelineProto->start();
$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -27,7 +27,7 @@ description: channels.joinChannel parameters, return type and example
|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups|
### Example:
### MadelineProto Example:
```
@ -47,7 +47,7 @@ $MadelineProto->start();
$Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -29,7 +29,7 @@ description: channels.leaveChannel parameters, return type and example
|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available|
### Example:
### MadelineProto Example:
```
@ -49,7 +49,7 @@ $MadelineProto->start();
$Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:

View File

@ -27,7 +27,7 @@ description: channels.readHistory parameters, return type and example
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
### Example:
### MadelineProto Example:
```
@ -47,7 +47,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -27,7 +27,7 @@ description: channels.readMessageContents parameters, return type and example
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
### Example:
### MadelineProto Example:
```
@ -47,7 +47,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->channels->readMessageContents(['channel' => InputChannel, 'id' => [int, int], ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -28,7 +28,7 @@ description: channels.reportSpam parameters, return type and example
|INPUT_USER_DEACTIVATED|The specified user was deleted|
### Example:
### MadelineProto Example:
```
@ -48,7 +48,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -27,7 +27,7 @@ description: channels.setStickers parameters, return type and example
|PARTICIPANTS_TOO_FEW|Not enough participants|
### Example:
### MadelineProto Example:
```
@ -47,7 +47,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->channels->setStickers(['channel' => InputChannel, 'stickerset' => InputStickerSet, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:

View File

@ -28,7 +28,7 @@ description: channels.toggleInvites parameters, return type and example
|CHAT_NOT_MODIFIED|The pinned message wasn't modified|
### Example:
### MadelineProto Example:
```
@ -48,7 +48,7 @@ $MadelineProto->start();
$Updates = $MadelineProto->channels->toggleInvites(['channel' => InputChannel, 'enabled' => Bool, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -19,7 +19,7 @@ description: channels.togglePreHistoryHidden parameters, return type and example
### Can bots use this method: **YES**
### Example:
### MadelineProto Example:
```
@ -39,7 +39,7 @@ $MadelineProto->start();
$Updates = $MadelineProto->channels->togglePreHistoryHidden(['channel' => InputChannel, 'enabled' => Bool, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:

View File

@ -26,7 +26,7 @@ description: channels.toggleSignatures parameters, return type and example
|CHANNEL_INVALID|The provided channel is invalid|
### Example:
### MadelineProto Example:
```
@ -46,7 +46,7 @@ $MadelineProto->start();
$Updates = $MadelineProto->channels->toggleSignatures(['channel' => InputChannel, 'enabled' => Bool, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -30,7 +30,7 @@ description: channels.updatePinnedMessage parameters, return type and example
|CHAT_NOT_MODIFIED|The pinned message wasn't modified|
### Example:
### MadelineProto Example:
```
@ -50,7 +50,7 @@ $MadelineProto->start();
$Updates = $MadelineProto->channels->updatePinnedMessage(['silent' => Bool, 'channel' => InputChannel, 'id' => int, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:

View File

@ -30,7 +30,7 @@ description: channels.updateUsername parameters, return type and example
|USERNAME_OCCUPIED|The provided username is already occupied|
### Example:
### MadelineProto Example:
```
@ -50,7 +50,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -27,7 +27,7 @@ Block a user
|CONTACT_ID_INVALID|The provided contact ID is invalid|
### Example:
### MadelineProto Example:
```
@ -47,7 +47,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->contacts->block(['id' => InputUser, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -27,7 +27,7 @@ Delete a contact
|CONTACT_ID_INVALID|The provided contact ID is invalid|
### Example:
### MadelineProto Example:
```
@ -47,7 +47,7 @@ $MadelineProto->start();
$contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -28,7 +28,7 @@ Delete multiple contacts
|Timeout|A timeout occurred while fetching data from the bot|
### Example:
### MadelineProto Example:
```
@ -48,7 +48,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -15,7 +15,7 @@ Export contact as card
### Can bots use this method: **NO**
### Example:
### MadelineProto Example:
```
@ -35,7 +35,7 @@ $MadelineProto->start();
$Vector_of_int = $MadelineProto->contacts->exportCard();
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -21,7 +21,7 @@ Get blocked users
### Can bots use this method: **NO**
### Example:
### MadelineProto Example:
```
@ -41,7 +41,7 @@ $MadelineProto->start();
$contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -20,7 +20,7 @@ Get info about a certain contact
### Can bots use this method: **NO**
### Example:
### MadelineProto Example:
```
@ -40,7 +40,7 @@ $MadelineProto->start();
$contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => int, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -15,7 +15,7 @@ Get online status of all users
### Can bots use this method: **NO**
### Example:
### MadelineProto Example:
```
@ -35,7 +35,7 @@ $MadelineProto->start();
$Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses();
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -12,14 +12,14 @@ Get most used chats
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|correspondents|[CLICK ME Bool](../types/Bool.md) | Optional||
|bots\_pm|[CLICK ME Bool](../types/Bool.md) | Optional||
|bots\_inline|[CLICK ME Bool](../types/Bool.md) | Optional||
|phone\_calls|[CLICK ME Bool](../types/Bool.md) | Optional||
|groups|[CLICK ME Bool](../types/Bool.md) | Optional||
|channels|[CLICK ME Bool](../types/Bool.md) | Optional||
|offset|[CLICK ME int](../types/int.md) | Yes||
|limit|[CLICK ME int](../types/int.md) | Yes||
|correspondents|[CLICK ME Bool](../types/Bool.md) | Optional|Fetch users?|
|bots\_pm|[CLICK ME Bool](../types/Bool.md) | Optional|Fetch bots?|
|bots\_inline|[CLICK ME Bool](../types/Bool.md) | Optional|Fetch inline bots?|
|phone\_calls|[CLICK ME Bool](../types/Bool.md) | Optional|Fetch phone calls?|
|groups|[CLICK ME Bool](../types/Bool.md) | Optional|Fetch groups?|
|channels|[CLICK ME Bool](../types/Bool.md) | Optional|Fetch channels and supergroups?|
|offset|[CLICK ME int](../types/int.md) | Yes|Initially 0, then `$offset += $contacts_TopPeers['categories']['count'];`|
|limit|[CLICK ME int](../types/int.md) | Yes|How many results to fetch|
|hash|[CLICK ME int](../types/int.md) | Yes||
@ -35,7 +35,7 @@ Get most used chats
|TYPES_EMPTY|The types field is empty|
### Example:
### MadelineProto Example:
```
@ -55,7 +55,7 @@ $MadelineProto->start();
$contacts_TopPeers = $MadelineProto->contacts->getTopPeers(['correspondents' => Bool, 'bots_pm' => Bool, 'bots_inline' => Bool, 'phone_calls' => Bool, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => int, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -28,7 +28,7 @@ Import card as contact
|NEED_MEMBER_INVALID|The provided member is invalid|
### Example:
### MadelineProto Example:
```
@ -48,7 +48,7 @@ $MadelineProto->start();
$User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -20,7 +20,7 @@ Add phone number as contact
### Can bots use this method: **NO**
### Example:
### MadelineProto Example:
```
@ -40,7 +40,7 @@ $MadelineProto->start();
$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -13,7 +13,7 @@ description: contacts.resetSaved parameters, return type and example
### Can bots use this method: **YES**
### Example:
### MadelineProto Example:
```
@ -33,7 +33,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->contacts->resetSaved();
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:

View File

@ -26,7 +26,7 @@ description: contacts.resetTopPeerRating parameters, return type and example
|PEER_ID_INVALID|The provided peer id is invalid|
### Example:
### MadelineProto Example:
```
@ -46,7 +46,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->contacts->resetTopPeerRating(['category' => TopPeerCategory, 'peer' => InputPeer, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -30,7 +30,7 @@ Search contacts
|Timeout|A timeout occurred while fetching data from the bot|
### Example:
### MadelineProto Example:
```
@ -50,7 +50,7 @@ $MadelineProto->start();
$contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -27,7 +27,7 @@ Unblock a user
|CONTACT_ID_INVALID|The provided contact ID is invalid|
### Example:
### MadelineProto Example:
```
@ -47,7 +47,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -18,7 +18,7 @@ description: help.getAppChangelog parameters, return type and example
### Can bots use this method: **NO**
### Example:
### MadelineProto Example:
```
@ -38,7 +38,7 @@ $MadelineProto->start();
$Updates = $MadelineProto->help->getAppChangelog(['prev_app_version' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -13,7 +13,7 @@ description: help.getAppUpdate parameters, return type and example
### Can bots use this method: **NO**
### Example:
### MadelineProto Example:
```
@ -33,7 +33,7 @@ $MadelineProto->start();
$help_AppUpdate = $MadelineProto->help->getAppUpdate();
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -20,7 +20,7 @@ description: help.getCdnConfig parameters, return type and example
|Timeout|A timeout occurred while fetching data from the bot|
### Example:
### MadelineProto Example:
```
@ -40,7 +40,7 @@ $MadelineProto->start();
$CdnConfig = $MadelineProto->help->getCdnConfig();
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:

View File

@ -20,7 +20,7 @@ description: help.getConfig parameters, return type and example
|Timeout|A timeout occurred while fetching data from the bot|
### Example:
### MadelineProto Example:
```
@ -40,7 +40,7 @@ $MadelineProto->start();
$Config = $MadelineProto->help->getConfig();
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:

View File

@ -13,7 +13,7 @@ description: help.getInviteText parameters, return type and example
### Can bots use this method: **NO**
### Example:
### MadelineProto Example:
```
@ -33,7 +33,7 @@ $MadelineProto->start();
$help_InviteText = $MadelineProto->help->getInviteText();
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -13,7 +13,7 @@ description: help.getNearestDc parameters, return type and example
### Can bots use this method: **NO**
### Example:
### MadelineProto Example:
```
@ -33,7 +33,7 @@ $MadelineProto->start();
$NearestDc = $MadelineProto->help->getNearestDc();
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -18,7 +18,7 @@ description: help.getRecentMeUrls parameters, return type and example
### Can bots use this method: **YES**
### Example:
### MadelineProto Example:
```
@ -38,7 +38,7 @@ $MadelineProto->start();
$help_RecentMeUrls = $MadelineProto->help->getRecentMeUrls(['referer' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:

View File

@ -13,7 +13,7 @@ description: help.getSupport parameters, return type and example
### Can bots use this method: **NO**
### Example:
### MadelineProto Example:
```
@ -33,7 +33,7 @@ $MadelineProto->start();
$help_Support = $MadelineProto->help->getSupport();
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -13,7 +13,7 @@ description: help.getTermsOfService parameters, return type and example
### Can bots use this method: **NO**
### Example:
### MadelineProto Example:
```
@ -33,7 +33,7 @@ $MadelineProto->start();
$help_TermsOfService = $MadelineProto->help->getTermsOfService();
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -18,7 +18,7 @@ description: help.saveAppLog parameters, return type and example
### Can bots use this method: **NO**
### Example:
### MadelineProto Example:
```
@ -38,7 +38,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):

View File

@ -19,7 +19,7 @@ description: help.setBotUpdatesStatus parameters, return type and example
### Can bots use this method: **YES**
### Example:
### MadelineProto Example:
```
@ -39,7 +39,7 @@ $MadelineProto->start();
$Bool = $MadelineProto->help->setBotUpdatesStatus(['pending_updates_count' => int, 'message' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:

View File

@ -35,7 +35,7 @@ Initializes connection and save information on the user's device and application
|INPUT_FETCH_FAIL|Failed deserializing TL payload|
### Example:
### MadelineProto Example:
```
@ -55,7 +55,7 @@ $MadelineProto->start();
$X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'system_lang_code' => 'string', 'lang_pack' => 'string', 'lang_code' => 'string', 'query' => !X, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:

View File

@ -21,7 +21,7 @@ Invokes a query after successfull completion of one of the previous queries.
### Can bots use this method: **YES**
### Example:
### MadelineProto Example:
```
@ -41,7 +41,7 @@ $MadelineProto->start();
$X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:

View File

@ -21,7 +21,7 @@ Result type returned by a current query.
### Can bots use this method: **YES**
### Example:
### MadelineProto Example:
```
@ -41,7 +41,7 @@ $MadelineProto->start();
$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:

View File

@ -38,7 +38,7 @@ Invoke this method with layer X
|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
### Example:
### MadelineProto Example:
```
@ -58,7 +58,7 @@ $MadelineProto->start();
$X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:

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