This commit is contained in:
Daniil Gentili 2017-08-18 13:28:02 +02:00
commit 65f6cf6a68

View File

@ -30,7 +30,7 @@ class RPCErrorException extends \Exception
case 'USER_PRIVACY_RESTRICTED':$message = "The user's privacy settings do not allow you to do this"; break;
case 'CHANNEL_PRIVATE':$message = "You haven't joined this channel/supergroup"; break;
case 'FLOOD_WAIT_666':$message = 'Spooky af m8'; break;
case 'USER_IS_BOT':$message = "Bots can't send messages to themselves"; break;
case 'USER_IS_BOT':$message = "Bots can't send messages to other bots"; break;
case 'BOT_METHOD_INVALID':$message = 'This method cannot be run by a bot'; break;
case 'PHONE_CODE_EXPIRED': $message = 'The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)'; break;
case 'USERNAME_INVALID': $message = 'The provided username is not valid'; break;