This commit is contained in:
Daniil Gentili 2017-01-30 13:25:11 +01:00
parent 019e274dc9
commit 11ec3fdb45
2 changed files with 4 additions and 0 deletions

View File

@ -290,6 +290,8 @@ var_dump($authorization);
See tests/testing.php for more examples.
Note that when you login as a bot, MadelineProto also logins using the [PWRTelegram](https://pwrtelegram.xyz) API, to allow persistant storage of peers, even after a logout and another login.
### Storing sessions
An istance of MadelineProto can be safely serialized or unserialized. To serialize MadelineProto to a file, usage of the `\danog\MadelineProto\Serialization` class is recommended:

View File

@ -294,6 +294,8 @@ var_dump($authorization);
See tests/testing.php for more examples.
Note that when you login as a bot, MadelineProto also logins using the [PWRTelegram](https://pwrtelegram.xyz) API, to allow persistant storage of peers, even after a logout and another login.
### Storing sessions
An istance of MadelineProto can be safely serialized or unserialized. To serialize MadelineProto to a file, usage of the `\danog\MadelineProto\Serialization` class is recommended: