1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 01:14:39 +01:00
This commit is contained in:
Daniil Gentili 2017-10-09 15:10:24 +03:00
parent 4e52420851
commit 9e5e3680e3

View File

@ -16,7 +16,7 @@ description: channels.readMessageContents parameters, return type and example
### Return type: [Bool](../types/Bool.md)
### Can bots use this method: **YES**
### Can bots use this method: **NO**
### Errors this method can return:
@ -31,9 +31,6 @@ description: channels.readMessageContents parameters, return type and example
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
@ -49,15 +46,6 @@ $Bool = $MadelineProto->channels->readMessageContents(['channel' => InputChannel
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - channels.readMessageContents
* params - `{"channel": InputChannel, "id": [int], }`
### As a user: