mirror of
https://github.com/BEARlogin/max-telegram-bridge-bot.git
synced 2026-07-10 01:28:38 +00:00
- MAX media upload: drop deprecated &v=1.2.5 from /uploads and /messages (MAX returns 404 with it; photos/videos broke, text was unaffected). - Run group moderation before discussion-comment ingest. - Generic addon extension hooks; core stays agnostic to their semantics: CrosspostAllowed, CrosspostDeliverable, HandleMaxCommand. - Customizable /help and /start from a file next to the binary (HELP_FILE). - /link command; optional web_app menu button (MINIAPP_URL). - Track bot chats and pair owners; migrations 017-019. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
9 lines
387 B
SQL
9 lines
387 B
SQL
CREATE TABLE IF NOT EXISTS discussion_map (
|
|
channel_chat_id INTEGER NOT NULL,
|
|
channel_msg_id INTEGER NOT NULL,
|
|
disc_chat_id INTEGER NOT NULL,
|
|
disc_msg_id INTEGER NOT NULL,
|
|
created_at INTEGER NOT NULL DEFAULT 0,
|
|
PRIMARY KEY (channel_chat_id, channel_msg_id)
|
|
);
|
|
CREATE INDEX IF NOT EXISTS idx_discmap_disc ON discussion_map(disc_chat_id, disc_msg_id);
|