From 524cede4691f4fda648954d457f3bddfed05d551 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sat, 25 Mar 2017 03:05:39 +0100 Subject: [PATCH] Updated readme --- README.md | 2 +- docs/index.md | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bf998d44..f535b4cf 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Logo created by [Matthew Hesketh](http://matthewhesketh.com) (thanks again!). PHP implementation of MTProto, based on [telepy](https://github.com/griganton/telepy_old). -This project can run on PHP 7 and HHVM, only 64 bit systems are supported ATM. You must also install the mbstring, curl extensions and the PHP Lua extension if you want to use the lua binding. +This project can run on PHP 7 and HHVM, both 32 bit and 64 bit systems are supported. You must also install the mbstring, curl extensions and the PHP Lua extension if you want to use the lua binding. Also note that MadelineProto will perform better if python and a big math extension like gmp or bcmath are installed. diff --git a/docs/index.md b/docs/index.md index 09bb1b74..deb94c61 100644 --- a/docs/index.md +++ b/docs/index.md @@ -14,7 +14,7 @@ Logo created by [Matthew Hesketh](http://matthewhesketh.com) (thanks again!). PHP implementation of MTProto, based on [telepy](https://github.com/griganton/telepy_old). -This project can run on PHP 7 and HHVM, only 64 bit systems are supported ATM. You must also install the mbstring, curl extensions and the PHP Lua extension if you want to use the lua binding. +This project can run on PHP 7 and HHVM, both 32 bit and 64 bit systems are supported. You must also install the mbstring, curl extensions and the PHP Lua extension if you want to use the lua binding. Also note that MadelineProto will perform better if python and a big math extension like gmp or bcmath are installed. @@ -340,7 +340,7 @@ Before sending any message, you must check if the secret chat was accepted by th ``` -$status = $MadelineProto->secret_chat_info($chat); +$status = $MadelineProto->secret_chat_status($chat); ``` Returns 0 if the chat cannot be found in the local database, 1 if the chat was requested but not yet accepted, and 2 if it is a valid accepted secret chat. @@ -459,7 +459,7 @@ The same operation should be done when serializing to another destination manual ### Exceptions -MadelineProto can throw three different exceptions: +MadelineProto can throw lots of different exceptions: * \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) @@ -470,7 +470,7 @@ MadelineProto can throw three different exceptions: * \danog\MadelineProto\SecurityException - Thrown on security problems (invalid params during generation of auth key or similar) -* \danog\MadelineProto\Conversion\Exception - Thrown if some param/object can't be converted to/from bot API/TD/TD-CLI format (this includes markdown/html parsing) +* \danog\MadelineProto\TL\Conversion\Exception - Thrown if some param/object can't be converted to/from bot API/TD/TD-CLI format (this includes markdown/html parsing)