feat: sync AI compose and ChatBot features
This commit is contained in:
parent
35e5d38f4d
commit
b7269b135f
75 changed files with 5426 additions and 123 deletions
|
|
@ -55,6 +55,7 @@ box AS (
|
|||
from_user_id,
|
||||
message_date,
|
||||
edit_date,
|
||||
hide_edited,
|
||||
outgoing,
|
||||
body,
|
||||
entities::text AS entities_json,
|
||||
|
|
@ -69,6 +70,7 @@ SELECT
|
|||
from_user_id,
|
||||
message_date,
|
||||
edit_date,
|
||||
hide_edited,
|
||||
outgoing,
|
||||
body,
|
||||
entities_json,
|
||||
|
|
@ -246,6 +248,7 @@ RETURNING
|
|||
ttl_period,
|
||||
expires_at,
|
||||
edit_date,
|
||||
hide_edited,
|
||||
outgoing,
|
||||
body,
|
||||
entities::text AS entities_json,
|
||||
|
|
@ -291,6 +294,7 @@ SELECT
|
|||
ttl_period,
|
||||
expires_at,
|
||||
edit_date,
|
||||
hide_edited,
|
||||
outgoing,
|
||||
body,
|
||||
entities::text AS entities_json,
|
||||
|
|
@ -361,6 +365,7 @@ SELECT
|
|||
m.ttl_period,
|
||||
m.expires_at,
|
||||
m.edit_date,
|
||||
m.hide_edited,
|
||||
m.outgoing,
|
||||
m.body,
|
||||
m.entities::text AS entities_json,
|
||||
|
|
@ -429,6 +434,7 @@ base AS NOT MATERIALIZED (
|
|||
m.ttl_period,
|
||||
m.expires_at,
|
||||
m.edit_date,
|
||||
m.hide_edited,
|
||||
m.outgoing,
|
||||
m.body,
|
||||
m.entities::text AS entities_json,
|
||||
|
|
@ -604,6 +610,7 @@ SELECT
|
|||
ttl_period,
|
||||
expires_at,
|
||||
edit_date,
|
||||
hide_edited,
|
||||
outgoing,
|
||||
body,
|
||||
entities_json,
|
||||
|
|
@ -688,6 +695,7 @@ SELECT
|
|||
m.ttl_period,
|
||||
m.expires_at,
|
||||
m.edit_date,
|
||||
m.hide_edited,
|
||||
m.outgoing,
|
||||
m.body,
|
||||
m.entities::text AS entities_json,
|
||||
|
|
@ -838,6 +846,7 @@ SELECT
|
|||
m.ttl_period,
|
||||
m.expires_at,
|
||||
m.edit_date,
|
||||
m.hide_edited,
|
||||
m.outgoing,
|
||||
m.body,
|
||||
m.entities::text AS entities_json,
|
||||
|
|
@ -922,6 +931,7 @@ SELECT
|
|||
ttl_period,
|
||||
expires_at,
|
||||
edit_date,
|
||||
hide_edited,
|
||||
outgoing,
|
||||
body,
|
||||
entities::text AS entities_json,
|
||||
|
|
@ -976,6 +986,7 @@ SELECT
|
|||
ttl_period,
|
||||
expires_at,
|
||||
edit_date,
|
||||
hide_edited,
|
||||
outgoing,
|
||||
body,
|
||||
entities::text AS entities_json,
|
||||
|
|
@ -1021,6 +1032,7 @@ UPDATE private_messages
|
|||
SET body = sqlc.arg(body)::text,
|
||||
entities = sqlc.arg(entities_json)::jsonb,
|
||||
edit_date = sqlc.arg(edit_date)::int,
|
||||
hide_edited = sqlc.arg(hide_edited)::boolean,
|
||||
reply_markup = CASE
|
||||
WHEN sqlc.arg(set_reply_markup)::boolean THEN sqlc.arg(reply_markup_json)::jsonb
|
||||
ELSE reply_markup
|
||||
|
|
@ -1033,6 +1045,7 @@ UPDATE message_boxes
|
|||
SET body = sqlc.arg(body)::text,
|
||||
entities = sqlc.arg(entities_json)::jsonb,
|
||||
edit_date = sqlc.arg(edit_date)::int,
|
||||
hide_edited = sqlc.arg(hide_edited)::boolean,
|
||||
pts = sqlc.arg(pts)::int,
|
||||
reply_markup = CASE
|
||||
WHEN sqlc.arg(set_reply_markup)::boolean THEN sqlc.arg(reply_markup_json)::jsonb
|
||||
|
|
@ -1053,6 +1066,7 @@ RETURNING
|
|||
ttl_period,
|
||||
expires_at,
|
||||
edit_date,
|
||||
hide_edited,
|
||||
outgoing,
|
||||
body,
|
||||
entities::text AS entities_json,
|
||||
|
|
@ -1351,6 +1365,7 @@ SELECT
|
|||
ttl_period,
|
||||
expires_at,
|
||||
edit_date,
|
||||
hide_edited,
|
||||
outgoing,
|
||||
body,
|
||||
entities::text AS entities_json,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue