mirror of
https://github.com/xCyanGrizzly/DragonsStash.git
synced 2026-06-13 04:31:16 +00:00
Both read the server-side last message ID from TDLib's local cache. Used by the channel-scan-skip guard to short-circuit a paginated searchChatMessages when last_message.id <= our watermark. getForumTopic uses forum_topic_id (renamed from message_thread_id in TDLib 1.8.64, same pattern as searchChatMessages / getForumTopics). Returns null on any failure so the caller can fall back to scanning — we'd rather waste a scan than miss new content. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>