Skip to content

Commit a894dcf

Browse files
committed
test: collapse deferredMethods to sendRichMessageDraft
After implementing the other 13 deferred methods (mappings discovered from the telegram-bot-api 10.1 reference), only sendRichMessageDraft remains: it needs a tg.RichMessage PageBlock tree built from HTML/markdown. Conformance now enforces the full surface bar that one method.
1 parent 9da5764 commit a894dcf

1 file changed

Lines changed: 1 addition & 14 deletions

File tree

conformance_test.go

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,7 @@ var coveredByOtherMeans = map[string]string{
2121
// yet implemented, each blocked on a missing gotd/td RPC or unclear MTProto
2222
// mapping. They should move to an implementation as td gains support.
2323
var deferredMethods = map[string]string{
24-
"deleteMessageReaction": "no bot-accessible MTProto RPC to remove another user's reaction",
25-
"deleteAllMessageReactions": "no bot-accessible MTProto RPC to clear a message's reactions",
26-
"sendMessageDraft": "messages.saveDraft exists but Bot API draft_id has no MTProto equivalent (one draft per peer/thread)",
27-
"sendRichMessageDraft": "rich-message drafts (Bot API 10.1) have no MTProto mapping yet",
28-
"sendLivePhoto": "no MTProto RPC for the iOS live-photo upload form",
29-
"setChatMemberTag": "no MTProto RPC for member tags",
30-
"getUserProfileAudios": "no MTProto RPC for profile audios",
31-
"getUserPersonalChatMessages": "no MTProto RPC for a user's personal-chat messages",
32-
"savePreparedKeyboardButton": "no MTProto RPC for prepared keyboard buttons",
33-
"answerChatJoinRequestQuery": "Bot API 10.1; no MTProto mapping yet",
34-
"sendChatJoinRequestWebApp": "Bot API 10.1; no MTProto mapping yet",
35-
"answerGuestQuery": "messages.setBotGuestChatResult not exposed by td v0.156.3",
36-
"readBusinessMessage": "messages.readHistory needs business-context peer resolution botapi can't do offline",
37-
"transferBusinessAccountStars": "no Stars-transfer RPC exposed by td v0.156.3",
24+
"sendRichMessageDraft": "needs a tg.RichMessage PageBlock tree built from HTML/markdown, a content parser TDLib runs server-side",
3825
}
3926

4027
// notApplicableMethods lists published methods that do not apply to the

0 commit comments

Comments
 (0)