Skip to content

Commit a72f954

Browse files
ernadoclaude
andcommitted
docs(roadmap): record AnswerInlineQuery, chat photo, stickers
Mark inline queries, chat photo set/delete and sticker upload/management done; narrow Phase 5 deferrals to payment answers and the two sticker read methods. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 143e49c commit a72f954

1 file changed

Lines changed: 22 additions & 15 deletions

File tree

docs/roadmap.md

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -109,35 +109,42 @@ with the chat-management and query work in Phase 5).
109109

110110
## Phase 5 — Files, queries, chat management
111111

112-
**Mostly done** on `main`. The methods are on `*Bot` with the same
113-
functional-option style as Phase 3. See `file.go`, `answer.go`, `commands.go`,
114-
`chat_member_methods.go`, `chat_admin.go`, `invite_links.go`,
115-
`live_location.go`.
112+
**Done** on `main` (payment answers and a couple of sticker reads aside). The
113+
methods are on `*Bot` with the same functional-option style as Phase 3. See
114+
`file.go`, `answer.go`, `commands.go`, `chat_member_methods.go`,
115+
`chat_admin.go`, `chat_photo.go`, `invite_links.go`, `live_location.go`,
116+
`inline_query_result.go`, `input_message_content.go`, `sticker.go`.
116117

117118
-`GetFile` + download (`DownloadFile`/`DownloadFileToPath`);
118119
`file_unique_id` resolved — derived locally from the decoded `file_id` with
119120
the TDLib scheme (web/document exact; legacy photos via volume/local id, newer
120121
photo sources fall back to media id). Resolves Decisions-needed #1. No HTTP
121122
file server in the MTProto-native model, so `GetFile` is decode-only.
122-
-`AnswerCallbackQuery` done (+ `Context.AnswerCallback`).
123-
`AnswerInlineQuery` (needs the `InlineQueryResult` union) and the payment
124-
answers `AnswerPreCheckoutQuery`/`AnswerShippingQuery` (need payment-update
125-
plumbing) deferred.
123+
-`AnswerCallbackQuery` (+ `Context.AnswerCallback`) and `AnswerInlineQuery`
124+
(+ `Context.AnswerInline`) done — the `InlineQueryResult` union (article;
125+
photo/gif/mpeg4 gif by URL; cached photo/gif/sticker/document/video/voice/
126+
audio by file_id; contact/location/venue) and the `InputMessageContent` union
127+
(text/location/venue/contact). Payment answers
128+
`AnswerPreCheckoutQuery`/`AnswerShippingQuery` deferred (need payment-update
129+
plumbing, which has no incoming updates wired yet).
126130
- ☑ Chat members: `Ban`/`Unban`/`Restrict`/`PromoteChatMember`,
127131
`GetChatMember`, `GetChatAdministrators`, `GetChatMemberCount`
128132
(supergroups/channels via `channels.*`); `ChatPermissions`/`ChatAdminRights`
129133
with MTProto rights mapping; participant → `ChatMember` converter.
130134
- ☑ Chat admin: pin/unpin (`PinChatMessage`/`UnpinChatMessage`/
131135
`UnpinAllChatMessages`), `SetChatTitle`/`SetChatDescription`,
132-
`SetChatPermissions`, `LeaveChat`; invite links
133-
(`Export`/`Create`/`Edit`/`RevokeChatInviteLink`). Chat photo set/delete
134-
deferred (needs the upload path).
136+
`SetChatPermissions`, `LeaveChat`, `SetChatPhoto`/`DeleteChatPhoto`; invite
137+
links (`Export`/`Create`/`Edit`/`RevokeChatInviteLink`).
135138
- ☑ Commands: `Set`/`Get`/`DeleteMyCommands` with the `BotCommandScope` union.
136139
- ☑ Live location: `EditMessageLiveLocation`, `StopMessageLiveLocation`.
137-
138-
Deferred within Phase 5: `UploadStickerFile` and sticker-set methods (large,
139-
needs sticker-set type surface); `AnswerInlineQuery` (`InlineQueryResult`
140-
union); payment answers; chat photo set/delete.
140+
- ◐ Stickers: `UploadStickerFile`, `CreateNewStickerSet`, `AddStickerToSet`,
141+
`DeleteStickerFromSet`, `SetStickerPositionInSet` done (`InputSticker` +
142+
`StickerFormat`). `GetStickerSet`/`SetStickerSetThumb` deferred (need full
143+
`Sticker[]` conversion).
144+
145+
Deferred within Phase 5: payment answers
146+
(`AnswerPreCheckoutQuery`/`AnswerShippingQuery`) until payment updates land;
147+
`GetStickerSet`/`SetStickerSetThumb`.
141148

142149
## Phase 6 — Errors, rate limiting, resilience
143150

0 commit comments

Comments
 (0)