Skip to content

feat: improve TelegramEx.Types#30

Merged
lsdrfrx merged 3 commits into
mainfrom
feature/add-types
Jul 12, 2026
Merged

feat: improve TelegramEx.Types#30
lsdrfrx merged 3 commits into
mainfrom
feature/add-types

Conversation

@lsdrfrx

@lsdrfrx lsdrfrx commented Jul 10, 2026

Copy link
Copy Markdown
Owner

Description

Adds a lot of types from Telegram Bot API instead of basic maps to improve usage experience

Ready Checklist

  • Implementation: code works, types are specified, dialyzer passes
  • Documentation: functions have @doc, README updated if needed
  • Tests: tests added/updated, mix test passes locally

@lsdrfrx lsdrfrx self-assigned this Jul 10, 2026
@lsdrfrx lsdrfrx force-pushed the feature/add-types branch from 8b4811d to 2976b89 Compare July 10, 2026 21:13
- Shared type `TelegramEx.Types.nullable` for optional fields that can
be `nil`
- Add `TelegramEx.Types.map` helper to map nested objects to specific
types
- Add `TelegramEx.Types.{MessageEntity, ReplyParameters, User}` types
@lsdrfrx lsdrfrx force-pushed the feature/add-types branch from 024fd15 to 3f16a5b Compare July 11, 2026 11:02
@lsdrfrx lsdrfrx changed the title feat: add TelegramEx.Types.Chat feat: improve TelegramEx.Types Jul 11, 2026
@lsdrfrx lsdrfrx added the enhancement New feature or request label Jul 11, 2026
Added all remain types that are supported by current lib features:
- `TelegramEx.Types.Audio`
- `TelegramEx.Types.Contact`
- `TelegramEx.Types.Document`
- `TelegramEx.Types.File`
- `TelegranEx.Types.Location`
- `TelegramEx.Types.Poll`
- `TelegramEx.Types.Video`
@lsdrfrx lsdrfrx merged commit 012ccee into main Jul 12, 2026
1 check passed
@lsdrfrx lsdrfrx deleted the feature/add-types branch July 12, 2026 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant