Funogram.Tools: expose the JSON serialization options#95
Merged
Conversation
Otherwise, people have to build contraptions to get this field: https://github.com/Szer/bots/blob/f1ab1f5b83186653cfac2971869cdc0296d821ff/src/BotInfra/TelegramApi.fs#L12-L43
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Otherwise, people have to build contraptions to get this field: https://github.com/Szer/bots/blob/f1ab1f5b83186653cfac2971869cdc0296d821ff/src/BotInfra/TelegramApi.fs#L12-L43