Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot] 2026-04-23 17:57:10 +00:00
parent 7cbc41b523
commit 3977f2e657
2 changed files with 5 additions and 0 deletions

View file

@ -29,6 +29,7 @@ export type Database = {
telegram_first_message_received_at: string | null
telegram_onboarding_completed: boolean
telegram_token_invalid: boolean
telegram_user_chat_id: number | null
telegram_webhook_configured: boolean
telegram_webhook_secret: string | null
updated_at: string
@ -51,6 +52,7 @@ export type Database = {
telegram_first_message_received_at?: string | null
telegram_onboarding_completed?: boolean
telegram_token_invalid?: boolean
telegram_user_chat_id?: number | null
telegram_webhook_configured?: boolean
telegram_webhook_secret?: string | null
updated_at?: string
@ -73,6 +75,7 @@ export type Database = {
telegram_first_message_received_at?: string | null
telegram_onboarding_completed?: boolean
telegram_token_invalid?: boolean
telegram_user_chat_id?: number | null
telegram_webhook_configured?: boolean
telegram_webhook_secret?: string | null
updated_at?: string

View file

@ -0,0 +1,2 @@
ALTER TABLE public.agent_instances ADD COLUMN IF NOT EXISTS telegram_user_chat_id bigint;
COMMENT ON COLUMN public.agent_instances.telegram_user_chat_id IS 'Chat ID do Telegram do dono do agente — populado pelo telegram-webhook na primeira mensagem. Usado em TELEGRAM_ALLOWED_USERS / TELEGRAM_HOME_CHANNEL no container Hermes.';