Repository navigation
v0.1.1-alpha.1
Pre-release
Pre-release
·
1 commit
to main
since this release
Added
- Edits and reactions are decoded.
UpdategainedEditedMessage,
MessageReactionandMessageReactionCount, with the types behind them:
MessageReactionUpdated,MessageReactionCountUpdated,ReactionCountand
ReactionType. A reaction is an emoji, a custom emoji or a paid one, told apart
byType(ReactionEmoji,ReactionCustomEmoji,ReactionPaid). Until now
naming these kinds inWithAllowedUpdateswas accepted, and the updates came
back as anUpdateholding onlyUpdateID, with no error. Telegram delivers
the two reaction kinds only when the bot is an administrator of the chat. - More of
Messageis modeled.Animation,Sticker,MigrateToChatID,
MigrateFromChatIDandIsTopicMessage, plusChatMember.IsMember, which
Telegram sends only for a restricted member. For a GIF Telegram fills
Documentas well asAnimation, so a bot that sorts attachments checks
Animationfirst. A reply chain in an ordinary supergroup carries a
MessageThreadIDjust as a forum topic does;IsTopicMessageis what tells
them apart before a bot sends into the thread. EditMessageRichMarkdown, the Markdown counterpart ofEditMessageRichHTML,
taking the same options, soWithEntityDetectionworks with it. Without it a
bot that sent a rich message as Markdown had to go throughCallto edit it.
The Bot API version stays at 10.3: rich messages are older than that.
Fixed
Probeno longer reads a 409, a 429 or a 5xx as "the method exists". It
took any API answer other than "method not found" for presence, so a gateway
error or a rate limit during startup letPreflightpass against a server that
might not have the method. Those answers now return an error,cannot tell whether <method> exists, which wraps the*APIError, as a 401, a 403 and a
proxy's 404 already did. A bot that callsPreflightwithMethodscan now
fail to start on a server that is briefly unwell, where before it started. A
bot that would rather run degraded callsProbeitself and keeps its fallback
when it returns an error.DownloadToFileredacts the token from an HTTP error. The error body of a
failed download came back as it was. A reverse proxy in front of a
self-hosted server can echo the request URI in it, and the URI holds the
token.Callalready scrubbed its errors; the download path now does the
same.
Documentation
CallbackQuery.Messagesays what Telegram sends for a message the bot can no
longer reach:dateis 0 and onlyChatandMessageIDmean anything, so
Message.Date == 0is the test.WithAllowedUpdatesnamedmy_chat_memberas a kind Telegram's default
leaves out. It does not: the default leaves outchat_member,
message_reactionandmessage_reaction_count. An empty option also does not
restore that default; Telegram keeps the list last set for the token.
Changed
- A release waits for CI.
release.ymlrunsci.ymlon the tagged commit
and publishes nothing unless it passed. When CI cannot run,release.ymlcan
be started by hand with the tag and a reason; that run skips CI and prints the
reason at the top of the release notes. Seedocs/releases.md. - The Bot API drift check fails only the weekly run; a new Bot API version is
not a defect in the code being pushed or released. - Dependabot opens grouped version updates against
dev.