fix: harden telegram bot reconnection (#6)

This commit is contained in:
Felipe Domingues 2026-05-28 20:05:14 -03:00 committed by GitHub
parent e3d9ae7857
commit f2b3cb219a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 207 additions and 19 deletions

View file

@ -21,7 +21,7 @@ import {
suggestBotUsername,
} from "@/lib/telegram-username";
const TOKEN_REGEX = /^\d+:[A-Za-z0-9_-]{35}$/;
const TOKEN_REGEX = /^\d+:[A-Za-z0-9_-]+$/;
interface Props {
agentName: string;