forked from danog/MadelineProto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
514 changed files
with
15,817 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php declare(strict_types=1); | ||
/** | ||
* AboutTooLongError error. | ||
* | ||
* This file is part of MadelineProto. | ||
* MadelineProto is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. | ||
* MadelineProto is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* See the GNU Affero General Public License for more details. | ||
* You should have received a copy of the GNU General Public License along with MadelineProto. | ||
* If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* @author Daniil Gentili <[email protected]> | ||
* @copyright 2016-2024 Daniil Gentili <[email protected]> | ||
* @license https://opensource.org/licenses/AGPL-3.0 AGPLv3 | ||
* @link https://docs.madelineproto.xyz MadelineProto documentation | ||
*/ | ||
|
||
namespace danog\MadelineProto\RPCError; | ||
|
||
use danog\MadelineProto\RPCErrorException; | ||
|
||
/** | ||
* About string too long. | ||
*/ | ||
final class AboutTooLongError extends RPCErrorException | ||
{ | ||
public function __construct(string $caller, ?\Exception $previous = null) | ||
{ | ||
parent::__construct('ABOUT_TOO_LONG', 400, $caller, $previous); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php declare(strict_types=1); | ||
/** | ||
* AccessTokenExpiredError error. | ||
* | ||
* This file is part of MadelineProto. | ||
* MadelineProto is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. | ||
* MadelineProto is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* See the GNU Affero General Public License for more details. | ||
* You should have received a copy of the GNU General Public License along with MadelineProto. | ||
* If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* @author Daniil Gentili <[email protected]> | ||
* @copyright 2016-2024 Daniil Gentili <[email protected]> | ||
* @license https://opensource.org/licenses/AGPL-3.0 AGPLv3 | ||
* @link https://docs.madelineproto.xyz MadelineProto documentation | ||
*/ | ||
|
||
namespace danog\MadelineProto\RPCError; | ||
|
||
use danog\MadelineProto\RPCErrorException; | ||
|
||
/** | ||
* Access token expired. | ||
*/ | ||
final class AccessTokenExpiredError extends RPCErrorException | ||
{ | ||
public function __construct(string $caller, ?\Exception $previous = null) | ||
{ | ||
parent::__construct('ACCESS_TOKEN_EXPIRED', 400, $caller, $previous); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php declare(strict_types=1); | ||
/** | ||
* AccessTokenInvalidError error. | ||
* | ||
* This file is part of MadelineProto. | ||
* MadelineProto is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. | ||
* MadelineProto is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* See the GNU Affero General Public License for more details. | ||
* You should have received a copy of the GNU General Public License along with MadelineProto. | ||
* If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* @author Daniil Gentili <[email protected]> | ||
* @copyright 2016-2024 Daniil Gentili <[email protected]> | ||
* @license https://opensource.org/licenses/AGPL-3.0 AGPLv3 | ||
* @link https://docs.madelineproto.xyz MadelineProto documentation | ||
*/ | ||
|
||
namespace danog\MadelineProto\RPCError; | ||
|
||
use danog\MadelineProto\RPCErrorException; | ||
|
||
/** | ||
* Access token invalid. | ||
*/ | ||
final class AccessTokenInvalidError extends RPCErrorException | ||
{ | ||
public function __construct(string $caller, ?\Exception $previous = null) | ||
{ | ||
parent::__construct('ACCESS_TOKEN_INVALID', 400, $caller, $previous); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php declare(strict_types=1); | ||
/** | ||
* AddressInvalidError error. | ||
* | ||
* This file is part of MadelineProto. | ||
* MadelineProto is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. | ||
* MadelineProto is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* See the GNU Affero General Public License for more details. | ||
* You should have received a copy of the GNU General Public License along with MadelineProto. | ||
* If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* @author Daniil Gentili <[email protected]> | ||
* @copyright 2016-2024 Daniil Gentili <[email protected]> | ||
* @license https://opensource.org/licenses/AGPL-3.0 AGPLv3 | ||
* @link https://docs.madelineproto.xyz MadelineProto documentation | ||
*/ | ||
|
||
namespace danog\MadelineProto\RPCError; | ||
|
||
use danog\MadelineProto\RPCErrorException; | ||
|
||
/** | ||
* The specified geopoint address is invalid. | ||
*/ | ||
final class AddressInvalidError extends RPCErrorException | ||
{ | ||
public function __construct(string $caller, ?\Exception $previous = null) | ||
{ | ||
parent::__construct('ADDRESS_INVALID', 400, $caller, $previous); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php declare(strict_types=1); | ||
/** | ||
* AdminIdInvalidError error. | ||
* | ||
* This file is part of MadelineProto. | ||
* MadelineProto is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. | ||
* MadelineProto is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* See the GNU Affero General Public License for more details. | ||
* You should have received a copy of the GNU General Public License along with MadelineProto. | ||
* If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* @author Daniil Gentili <[email protected]> | ||
* @copyright 2016-2024 Daniil Gentili <[email protected]> | ||
* @license https://opensource.org/licenses/AGPL-3.0 AGPLv3 | ||
* @link https://docs.madelineproto.xyz MadelineProto documentation | ||
*/ | ||
|
||
namespace danog\MadelineProto\RPCError; | ||
|
||
use danog\MadelineProto\RPCErrorException; | ||
|
||
/** | ||
* The specified admin ID is invalid. | ||
*/ | ||
final class AdminIdInvalidError extends RPCErrorException | ||
{ | ||
public function __construct(string $caller, ?\Exception $previous = null) | ||
{ | ||
parent::__construct('ADMIN_ID_INVALID', 400, $caller, $previous); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php declare(strict_types=1); | ||
/** | ||
* AdminRankEmojiNotAllowedError error. | ||
* | ||
* This file is part of MadelineProto. | ||
* MadelineProto is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. | ||
* MadelineProto is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* See the GNU Affero General Public License for more details. | ||
* You should have received a copy of the GNU General Public License along with MadelineProto. | ||
* If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* @author Daniil Gentili <[email protected]> | ||
* @copyright 2016-2024 Daniil Gentili <[email protected]> | ||
* @license https://opensource.org/licenses/AGPL-3.0 AGPLv3 | ||
* @link https://docs.madelineproto.xyz MadelineProto documentation | ||
*/ | ||
|
||
namespace danog\MadelineProto\RPCError; | ||
|
||
use danog\MadelineProto\RPCErrorException; | ||
|
||
/** | ||
* An admin rank cannot contain emojis. | ||
*/ | ||
final class AdminRankEmojiNotAllowedError extends RPCErrorException | ||
{ | ||
public function __construct(string $caller, ?\Exception $previous = null) | ||
{ | ||
parent::__construct('ADMIN_RANK_EMOJI_NOT_ALLOWED', 400, $caller, $previous); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php declare(strict_types=1); | ||
/** | ||
* AdminRankInvalidError error. | ||
* | ||
* This file is part of MadelineProto. | ||
* MadelineProto is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. | ||
* MadelineProto is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* See the GNU Affero General Public License for more details. | ||
* You should have received a copy of the GNU General Public License along with MadelineProto. | ||
* If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* @author Daniil Gentili <[email protected]> | ||
* @copyright 2016-2024 Daniil Gentili <[email protected]> | ||
* @license https://opensource.org/licenses/AGPL-3.0 AGPLv3 | ||
* @link https://docs.madelineproto.xyz MadelineProto documentation | ||
*/ | ||
|
||
namespace danog\MadelineProto\RPCError; | ||
|
||
use danog\MadelineProto\RPCErrorException; | ||
|
||
/** | ||
* The specified admin rank is invalid. | ||
*/ | ||
final class AdminRankInvalidError extends RPCErrorException | ||
{ | ||
public function __construct(string $caller, ?\Exception $previous = null) | ||
{ | ||
parent::__construct('ADMIN_RANK_INVALID', 400, $caller, $previous); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php declare(strict_types=1); | ||
/** | ||
* AdminRightsEmptyError error. | ||
* | ||
* This file is part of MadelineProto. | ||
* MadelineProto is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. | ||
* MadelineProto is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* See the GNU Affero General Public License for more details. | ||
* You should have received a copy of the GNU General Public License along with MadelineProto. | ||
* If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* @author Daniil Gentili <[email protected]> | ||
* @copyright 2016-2024 Daniil Gentili <[email protected]> | ||
* @license https://opensource.org/licenses/AGPL-3.0 AGPLv3 | ||
* @link https://docs.madelineproto.xyz MadelineProto documentation | ||
*/ | ||
|
||
namespace danog\MadelineProto\RPCError; | ||
|
||
use danog\MadelineProto\RPCErrorException; | ||
|
||
/** | ||
* The chatAdminRights constructor passed in keyboardButtonRequestPeer.peer_type.user_admin_rights has no rights set (i.e. flags is 0). | ||
*/ | ||
final class AdminRightsEmptyError extends RPCErrorException | ||
{ | ||
public function __construct(string $caller, ?\Exception $previous = null) | ||
{ | ||
parent::__construct('ADMIN_RIGHTS_EMPTY', 400, $caller, $previous); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php declare(strict_types=1); | ||
/** | ||
* AdminsTooMuchError error. | ||
* | ||
* This file is part of MadelineProto. | ||
* MadelineProto is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. | ||
* MadelineProto is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* See the GNU Affero General Public License for more details. | ||
* You should have received a copy of the GNU General Public License along with MadelineProto. | ||
* If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* @author Daniil Gentili <[email protected]> | ||
* @copyright 2016-2024 Daniil Gentili <[email protected]> | ||
* @license https://opensource.org/licenses/AGPL-3.0 AGPLv3 | ||
* @link https://docs.madelineproto.xyz MadelineProto documentation | ||
*/ | ||
|
||
namespace danog\MadelineProto\RPCError; | ||
|
||
use danog\MadelineProto\RPCErrorException; | ||
|
||
/** | ||
* There are too many admins. | ||
*/ | ||
final class AdminsTooMuchError extends RPCErrorException | ||
{ | ||
public function __construct(string $caller, ?\Exception $previous = null) | ||
{ | ||
parent::__construct('ADMINS_TOO_MUCH', 400, $caller, $previous); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php declare(strict_types=1); | ||
/** | ||
* AlbumPhotosTooManyError error. | ||
* | ||
* This file is part of MadelineProto. | ||
* MadelineProto is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. | ||
* MadelineProto is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* See the GNU Affero General Public License for more details. | ||
* You should have received a copy of the GNU General Public License along with MadelineProto. | ||
* If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* @author Daniil Gentili <[email protected]> | ||
* @copyright 2016-2024 Daniil Gentili <[email protected]> | ||
* @license https://opensource.org/licenses/AGPL-3.0 AGPLv3 | ||
* @link https://docs.madelineproto.xyz MadelineProto documentation | ||
*/ | ||
|
||
namespace danog\MadelineProto\RPCError; | ||
|
||
use danog\MadelineProto\RPCErrorException; | ||
|
||
/** | ||
* You have uploaded too many profile photos, delete some before retrying. | ||
*/ | ||
final class AlbumPhotosTooManyError extends RPCErrorException | ||
{ | ||
public function __construct(string $caller, ?\Exception $previous = null) | ||
{ | ||
parent::__construct('ALBUM_PHOTOS_TOO_MANY', 400, $caller, $previous); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php declare(strict_types=1); | ||
/** | ||
* AnonymousReactionsDisabledError error. | ||
* | ||
* This file is part of MadelineProto. | ||
* MadelineProto is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. | ||
* MadelineProto is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* See the GNU Affero General Public License for more details. | ||
* You should have received a copy of the GNU General Public License along with MadelineProto. | ||
* If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* @author Daniil Gentili <[email protected]> | ||
* @copyright 2016-2024 Daniil Gentili <[email protected]> | ||
* @license https://opensource.org/licenses/AGPL-3.0 AGPLv3 | ||
* @link https://docs.madelineproto.xyz MadelineProto documentation | ||
*/ | ||
|
||
namespace danog\MadelineProto\RPCError; | ||
|
||
use danog\MadelineProto\RPCErrorException; | ||
|
||
/** | ||
* Sorry, anonymous administrators cannot leave reactions or participate in polls. | ||
*/ | ||
final class AnonymousReactionsDisabledError extends RPCErrorException | ||
{ | ||
public function __construct(string $caller, ?\Exception $previous = null) | ||
{ | ||
parent::__construct('ANONYMOUS_REACTIONS_DISABLED', 403, $caller, $previous); | ||
} | ||
} |
Oops, something went wrong.