mirror of
https://github.com/domfelipe/mika-agent-assist.git
synced 2026-08-07 06:36:46 +00:00
Adicionou chat_id ao agente
X-Lovable-Edit-ID: edt-d1c7e3ba-c69b-47da-a090-3b18e50f3cdc Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
This commit is contained in:
commit
5f0292059e
2 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.';
|
||||
Loading…
Add table
Add a link
Reference in a new issue