Skip to content

Decode edits and reactions for quoto; Probe stops guessing (v0.1.1-alpha.1) - #1

Merged
amtiYo merged 3 commits into
devfrom
quoto-needs
Oct 22, 2026
Merged

amtiYo merged 3 commits into
devfrom
quoto-needs

Conversation

@amtiYo

@amtiYo amtiYo commented Oct 22, 2026

Copy link
Copy Markdown
Member

What quoto needs from tg to move to Go, released as v0.1.1-alpha.1.

  • Update decodes edited_message, message_reaction and message_reaction_count. Until now these kinds were accepted in WithAllowedUpdates and came back as an Update holding only UpdateID, with no error.
  • Message gains stickers, animations, migrate_to_chat_id / migrate_from_chat_id and is_topic_message; ChatMember gains is_member.
  • EditMessageRichMarkdown, the counterpart of EditMessageRichHTML.
  • Probe no longer reads 409, 429 and 5xx as "method exists". A busy server at startup used to switch a bot onto rich messages it could not send.
  • The bot token is removed from the error body of a failed download.

The changelog section ## v0.1.1-alpha.1 is in this branch. After the merge the tag goes on the merge result on dev.

Checks: go test -race ./..., go vet ./..., gofmt -l . clean.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

amtiYo and others added 3 commits October 22, 2026 15:49
…essing

Quoto needs protocol pieces tg did not have, and a Probe fix every bot using
Needs.Methods benefits from.

- Update.EditedMessage, MessageReaction and MessageReactionCount, with the
  reaction types. Before, naming these kinds in WithAllowedUpdates delivered an
  Update holding only UpdateID.
- Message.Animation, Sticker, MigrateToChatID, MigrateFromChatID and
  IsTopicMessage; ChatMember.IsMember.
- EditMessageRichMarkdown, the Markdown counterpart of EditMessageRichHTML.
- Probe returns "cannot tell" for 409, 429 and 5xx instead of reading them as
  "the method exists".
- Documentation: the date == 0 marker of an inaccessible callback message, and
  the real default of allowed_updates.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
DownloadToFile returned the error body of a non-2xx answer as it was. A
reverse proxy in front of a self-hosted server can echo the request URI,
token included. Call already scrubbed its errors; the download path now
does the same.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
amtiYo added a commit to FreshLabDev/quoto that referenced this pull request Oct 22, 2026
The replace pointed at a sibling worktree that CI and docker build do not
have. The pseudo-version is the head of FreshLabDev/tg#1; it becomes
v0.1.1-alpha.1 once that is merged and tagged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@amtiYo
amtiYo merged commit 7724406 into dev Oct 22, 2026
2 checks passed
@amtiYo
amtiYo deleted the quoto-needs branch October 22, 2026 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant