feat: sync bot keyboards and callbacks
Sync telesrv b96f2dd (feat(bot): complete keyboards callbacks and durable delivery). Skipped private docs and preserved public README files per sync rules; normalized the appearance seed log label for public naming.
This commit is contained in:
parent
0c99ae0a9d
commit
bf965f610c
80 changed files with 7212 additions and 349 deletions
12
deploy/migrations/0111_bot_api_polling_state.up.sql
Normal file
12
deploy/migrations/0111_bot_api_polling_state.up.sql
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
ALTER TABLE public.bot_api_update_states
|
||||
ADD COLUMN allowed_updates text[],
|
||||
ADD COLUMN cursor_initialized boolean NOT NULL DEFAULT false;
|
||||
|
||||
ALTER TABLE public.bot_api_update_states
|
||||
ADD CONSTRAINT bot_api_update_states_allowed_updates_check CHECK (
|
||||
allowed_updates IS NULL
|
||||
OR array_position(allowed_updates, NULL) IS NULL
|
||||
);
|
||||
|
||||
CREATE INDEX bot_api_updates_created_retention_idx
|
||||
ON public.bot_api_updates (created_at, id);
|
||||
Loading…
Add table
Add a link
Reference in a new issue