fixes to docs

This commit is contained in:
Daniil Gentili 2016-11-24 23:19:15 +00:00
parent 3bba37ef1d
commit a660bb4c68

View File

@ -190,7 +190,7 @@ for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$authorization = $MadelineProto->complete_phone_login($code); // Complete authorization $authorization = $MadelineProto->complete_phone_login($code); // Complete authorization
var_dump($authorization); var_dump($authorization);
$authorization = $MadelineProto->bot_login($token); // Note that every time you login as a bot or as a user MadelineProto will logout first, so now MadelineProto is logged in as the bot with the token $token, not with the number $number $authorization = $MadelineProto->bot_login($token); // Note that every time you login as a bot or as a user MadelineProto will logout first, so now MadelineProto is logged in as the bot with token $token, not as the user with number $number
var_dump($authorization); var_dump($authorization);
``` ```
@ -199,7 +199,7 @@ var_dump($authorization);
MadelineProto can throw three different exceptions: MadelineProto can throw three different exceptions:
* \danog\MadelineProto\Exception - Default exception, thrown when a php error occures and in a lot of other cases * \danog\MadelineProto\Exception - Default exception, thrown when a php error occures and in a lot of other cases
* \danog\MadelineProto\RPCErrorException - Thrown when an RPC error occurres (an error received via the mtproto API) * \danog\MadelineProto\RPCErrorException - Thrown when an RPC error occurres (an error received via the mtproto API)
* \danog\MadelineProto\TL/Exception - Thrown on TL serialization/deserialization errors * \danog\MadelineProto\TL\Exception - Thrown on TL serialization/deserialization errors
## Contributing ## Contributing