all: add support for topics and refactor other things

This commit is contained in:
Tulir Asokan
2025-12-06 14:52:39 +02:00
parent 14b3b1fed7
commit d5f87d2ec1
26 changed files with 797 additions and 390 deletions
+8 -1
View File
@@ -1,4 +1,4 @@
-- v0 -> v5 (compatible with v2+): Latest revision
-- v0 -> v6 (compatible with v2+): Latest revision
CREATE TABLE telegram_user_state (
user_id BIGINT NOT NULL PRIMARY KEY,
@@ -51,3 +51,10 @@ CREATE TABLE telegram_file (
mime_type TEXT,
size BIGINT
);
CREATE TABLE telegram_topic (
channel_id BIGINT NOT NULL,
topic_id BIGINT NOT NULL,
PRIMARY KEY (channel_id, topic_id)
);