mirror of
https://github.com/danog/telerpc.git
synced 2024-11-26 12:04:47 +01:00
Bump
This commit is contained in:
parent
3a3bbb63ca
commit
804d4068e8
5
bk.sql
5
bk.sql
@ -14,7 +14,6 @@
|
|||||||
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
|
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
|
||||||
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
|
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
|
||||||
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
|
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
|
||||||
g
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `bot_method_invalid`
|
-- Table structure for table `bot_method_invalid`
|
||||||
--
|
--
|
||||||
@ -927,7 +926,7 @@ INSERT INTO `error_descriptions` VALUES
|
|||||||
('SENSITIVE_CHANGE_FORBIDDEN','You can\'t change your sensitive content settings.'),
|
('SENSITIVE_CHANGE_FORBIDDEN','You can\'t change your sensitive content settings.'),
|
||||||
('SESSION_PASSWORD_NEEDED','2FA is enabled, use a password to login'),
|
('SESSION_PASSWORD_NEEDED','2FA is enabled, use a password to login'),
|
||||||
('SESSION_TOO_FRESH_%d','This session was created less than 24 hours ago, try again in %d seconds'),
|
('SESSION_TOO_FRESH_%d','This session was created less than 24 hours ago, try again in %d seconds'),
|
||||||
i('SETTINGS_INVALID','Invalid settings were provided'),
|
('SETTINGS_INVALID','Invalid settings were provided'),
|
||||||
('SHA256_HASH_INVALID','The provided SHA256 hash is invalid'),
|
('SHA256_HASH_INVALID','The provided SHA256 hash is invalid'),
|
||||||
('SHORT_NAME_INVALID','The specified short name is invalid'),
|
('SHORT_NAME_INVALID','The specified short name is invalid'),
|
||||||
('SHORT_NAME_OCCUPIED','The specified short name is already in use'),
|
('SHORT_NAME_OCCUPIED','The specified short name is already in use'),
|
||||||
@ -2691,7 +2690,7 @@ INSERT INTO `errors` VALUES
|
|||||||
('USER_BANNED_IN_CHANNEL','messages.sendMedia',400),
|
('USER_BANNED_IN_CHANNEL','messages.sendMedia',400),
|
||||||
('USER_BANNED_IN_CHANNEL','messages.sendMessage',400),
|
('USER_BANNED_IN_CHANNEL','messages.sendMessage',400),
|
||||||
('USER_BANNED_IN_CHANNEL','messages.sendMultiMedia',400),
|
('USER_BANNED_IN_CHANNEL','messages.sendMultiMedia',400),
|
||||||
t('USER_BANNED_IN_CHANNEL','messages.sendReaction',400),
|
('USER_BANNED_IN_CHANNEL','messages.sendReaction',400),
|
||||||
('USER_BANNED_IN_CHANNEL','messages.setTyping',400),
|
('USER_BANNED_IN_CHANNEL','messages.setTyping',400),
|
||||||
('USER_BANNED_IN_CHANNEL','messages.updatePinnedMessage',400),
|
('USER_BANNED_IN_CHANNEL','messages.updatePinnedMessage',400),
|
||||||
('USER_BANNED_IN_CHANNEL','messages.uploadMedia',400),
|
('USER_BANNED_IN_CHANNEL','messages.uploadMedia',400),
|
||||||
|
@ -4,4 +4,4 @@ chdir(__DIR__);
|
|||||||
|
|
||||||
require __DIR__.'/vendor/autoload.php';
|
require __DIR__.'/vendor/autoload.php';
|
||||||
|
|
||||||
(new Main)->run($argv[1] === 'serve');
|
(new Main)->run(($argv[1] ?? '') === 'serve');
|
@ -334,7 +334,7 @@ final class Main implements RequestHandler
|
|||||||
$code = $request->getQueryParameter('code') ?? $form->getValue('code');
|
$code = $request->getQueryParameter('code') ?? $form->getValue('code');
|
||||||
$method = $request->getQueryParameter('method') ?? $form->getValue('method');
|
$method = $request->getQueryParameter('method') ?? $form->getValue('method');
|
||||||
if ($error && $code && $method
|
if ($error && $code && $method
|
||||||
&& \is_numeric($_REQUEST['code'])
|
&& \is_numeric($code)
|
||||||
&& !RPCErrorException::isBad(
|
&& !RPCErrorException::isBad(
|
||||||
$error,
|
$error,
|
||||||
(int) $code,
|
(int) $code,
|
||||||
|
Loading…
Reference in New Issue
Block a user