-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] #1159
Comments
@MagisterMegumin 请检查baseURL是不是https |
不是 https 没法用 |
感谢,把baseURL改为https后解决了,但是此前一直是http但没有出现上述问题(。﹏。) |
Telegram 就没有允许过 http,怎么可能没有问题 |
抱歉,我这里的baseURL是https,然后遇到了类似的问题,仅会通知节点修改、公告修改等信息,但不能对用户的指令作出回应。 |
你這個是機器的DNS有問題,無法解析API域名。 |
Environment 环境
Your OS info, PHP/MySQL version and so on... 你的操作系统信息、PHP/MySQL 版本、以及其它所有可能相关的信息。
Commit
The commit you on. 你当前的 SSPanel UIM 位于哪条 commit。
Bug
Telegram bot 不会对消息作出回应,但是进行修改节点信息、修改公告等操作时它会发出提醒消息。
Reproduce
在群组中或私聊发送command给bot,bot不回复任何消息,这个情况是今天凌晨开始出现的,此前bot一直都在正常运作,并且此问题发生前没有修改任何文件。
Expected behavior
bot对收到的command做出相应的回应
Logs
尝试使用php xcat setTelegram进行修复,得到如下报错(网站已开启https)
PHP Fatal error: Uncaught TelegramBot\Api\HttpException: Bad Request: bad webhook: HTTPS url must be provided for webhook in /www/wwwroot/a.com/vendor/telegram-bot/api/src/BotApi.php:281
Stack trace:
#0 /www/wwwroot/a.com/vendor/telegram-bot/api/src/BotApi.php(258): TelegramBot\Api\BotApi::curlValidate(Resource id #106, '{"ok":false,"er...')
#1 /www/wwwroot/a.com/vendor/telegram-bot/api/src/BotApi.php(227): TelegramBot\Api\BotApi->executeCurl(Array)
#2 /www/wwwroot/a.com/vendor/telegram-bot/api/src/BotApi.php(437): TelegramBot\Api\BotApi->call('setWebhook', Array)
#3 /www/wwwroot/a.com/app/Command/XCat.php(267): TelegramBot\Api\BotApi->setWebhook('http://a.com...')
#4 /www/wwwroot/a.com/app/Command/XCat.php(45): App\Command\XCat->setTelegram()
#5 /www/wwwroot/a.com/xcat(11): App\Command\XCat->boot()
#6 {main}
thrown in /www/wwwroot/a.com/vendor/telegram-bot/api/src/BotApi.php on line 281
Fatal error: Uncaught TelegramBot\Api\HttpException: Bad Request: bad webhook: HTTPS url must be provided for webhook in /www/wwwroot/a.com/vendor/telegram-bot/api/src/BotApi.php:281
Stack trace:
#0 /www/wwwroot/a.com/vendor/telegram-bot/api/src/BotApi.php(258): TelegramBot\Api\BotApi::curlValidate(Resource id #106, '{"ok":false,"er...')
#1 /www/wwwroot/a.com/vendor/telegram-bot/api/src/BotApi.php(227): TelegramBot\Api\BotApi->executeCurl(Array)
#2 /www/wwwroot/a.com/vendor/telegram-bot/api/src/BotApi.php(437): TelegramBot\Api\BotApi->call('setWebhook', Array)
#3 /www/wwwroot/a.com/app/Command/XCat.php(267): TelegramBot\Api\BotApi->setWebhook('http://a.com...')
#4 /www/wwwroot/a.com/app/Command/XCat.php(45): App\Command\XCat->setTelegram()
#5 /www/wwwroot/a.com/xcat(11): App\Command\XCat->boot()
#6 {main}
thrown in /www/wwwroot/a.com/vendor/telegram-bot/api/src/BotApi.php on line 281
Addition
Additional context here. 如有可能,请提供更多相关资料。
The text was updated successfully, but these errors were encountered: