admin
This commit is contained in:
@@ -375,6 +375,31 @@ cd /www/wwwroot/coruna-lab
|
||||
|
||||
更换域名或 token 后需重新执行本命令。
|
||||
|
||||
#### Bot 指令无响应 / `getWebhookInfo` 报 500
|
||||
|
||||
1. 看 Laravel 日志是否出现 `telegram webhook hit` / `telegram webhook failed`:
|
||||
|
||||
```bash
|
||||
tail -n 100 /www/wwwroot/coruna-lab/storage/logs/laravel.log
|
||||
```
|
||||
|
||||
2. 若日志完全无变化,再查 PHP-FPM / Nginx(可能未写到 `laravel.log`):
|
||||
|
||||
```bash
|
||||
ls -la /www/wwwroot/coruna-lab/storage/logs/
|
||||
# 宝塔常见:
|
||||
tail -n 80 /www/wwwlogs/yxouw.cc.error.log
|
||||
tail -n 80 /www/server/php/82/var/log/php-fpm.log
|
||||
```
|
||||
|
||||
3. `getWebhookInfo` 中 `pending_update_count > 0` 且 `last_error_message` 含 500:部署含「webhook 始终 ACK」的修复后,重新:
|
||||
|
||||
```bash
|
||||
/www/server/php/82/bin/php artisan telegram:set-webhook
|
||||
```
|
||||
|
||||
4. 群无回复但日志有 `AuthorizedChat: chat rejected`:把 `TELEGRAM_OWNER_CHAT_ID`(或后台设置)改成日志里的真实 `chat_id`(超群多为 `-100...`),再 `config:clear`。
|
||||
|
||||
可选(地址监控):若启用 Tokenview,可另执行:
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user