Skip to content

Funogram.Tools: expose the JSON serialization options#95

Merged
Dolfik1 merged 1 commit into
Dolfik1:masterfrom
ForNeVeR:json-options-expose
Jul 16, 2026
Merged

Funogram.Tools: expose the JSON serialization options#95
Dolfik1 merged 1 commit into
Dolfik1:masterfrom
ForNeVeR:json-options-expose

Conversation

@ForNeVeR

Copy link
Copy Markdown
Contributor

@Dolfik1
Dolfik1 merged commit 5daf9f2 into Dolfik1:master Jul 16, 2026
1 check passed
Szer added a commit to Szer/bots that referenced this pull request Jul 16, 2026
…rkarounds (#211)

* Funogram 3.0.5 / Telegram 10.2.0: unwind ChatMember + JSON-options workarounds

Funogram 3.0.5 fixes the DU converter misdiscrimination (status now picks
the ChatMember case, via Always-attribute discriminators — upstream
refactoring of our PR Dolfik1/Funogram#93) and exposes Funogram.Tools.options
publicly (Dolfik1/Funogram#95).

- FunogramJson (BotInfra) and SerializationCompat fixtures use the public
  Funogram.Tools.options instead of reflection over the internal field
- CouponHubBot membership check branches on ChatMember DU cases instead of
  wire-status strings; same member set as before (creator/admin/member)
- Drop the "NEVER branch on ChatMember DU cases" warnings and vahter's
  now-unused chatMemberStatus helper
- FakeTgApiSpikeTests now asserts correct case discrimination instead of
  characterizing the 3.0.4 bug

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* Add ChatMember discriminator theory over all six wire statuses

Pins the Funogram 3.0.5 fix production now relies on. Verified red on
3.0.4 (member/left/kicked all deserialized as ChatMember.Owner) and
green on 3.0.5.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
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.

2 participants