Fix CSRF in bot
This commit is contained in:
1 parent
6d2d9ab9ae
commit
fffc1b0c81
3 files changed
+170
-19
No files matched your search
@@ -53,3 +53,13 @@ SOCKS5_PROXY=socks5://user:password@127.0.0.1:1080
|
||||
|
||||
Routes both API and Telegram traffic through the proxy. Leave empty to connect
|
||||
directly.
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
- `CSRF Token Validation Failed`: delete `state.json` (stale cookies) and run
|
||||
again. The bot seeds the csrf cookie itself and sends cookies even when the
|
||||
server marks them `Secure`, so plain-HTTP setups work.
|
||||
- `401 Unauthorized`: check `API_LOGIN` / `API_PASSWORD`.
|
||||
- `chat not found`: check `TELEGRAM_CHAT_ID` and that the bot is in the group.
|
||||
- Nothing posted: the first run intentionally stays silent. Create a meeting
|
||||
after the bot starts.
|
||||
Reference in new issue
Block a user