View Source Changelog
Unreleased
[0.55.0]
- Update Telegram API to 9.0: https://core.telegram.org/bots/api#april-11-2025
- Update Telegram API to 8.3: https://core.telegram.org/bots/api#february-12-2025
[0.54.0]
- Add ExGram.Cast to convert responses to models
- Fix webhook response casting, now all should be models
- Fix webhook options allowed_updates when sending a multipart
[0.53.0]
Update Telegram API to 7.5: https://core.telegram.org/bots/api#june-18-2024
Breaking changes from the API:
ExGram.get_chatnow returns the newExGram.Model.ChatFullInfoinstead ofExGram.Model.ChatExGram.send_invoice,ExGram.create_invoice_linkand now have 1 less mandatory param,provider_tokennow is optional. Ifnilit will use telegram starsExGram.Model.Chatnow have less fields, to get the full chat you need to useExGram.get_chat
[0.52.2]
- Update Telegram API to 7.2: https://core.telegram.org/bots/api#march-31-2024
[0.52.1]
- Fix ChatBoostSource, MaybeInaccessibleMessage, MessageOrigin and ReactionType subtypes for decoding
[0.52.0]
DSL public method changes:
- Deprecated
extract_group, now it's calledextract_chat extract_update_typenow returns{:ok, type} | :errorinstead oftype | :errorextract_message_typenow returns{:ok, type} | :errorinstead oftype | :error
- Deprecated
Fix decoding inner structs on messages
Remove maxwell
Remove inch_ex
Webhook url supports protocol and port
Add and apply styler
[0.51.1]
- Fix #131. Now multi bots with the same module is possible.
[0.51.0]
- Added options on polling and webhook methods.
WARNING: If you use custom module for method updates, the initial parameters passed to the
start_link/1has changed. Before:{:bot, pid, :token, token}Now:%{bot: pid, token: token}+ options configured on children setup
[0.50.2]
- Update Telegram API to 7.1: https://core.telegram.org/bots/api#february-16-2024
[0.50.1]
- Fix timeout on different Tesla adapters
[0.50.0]
- Update Telegram API to 7.0: https://core.telegram.org/bots/api#december-29-2023
[0.41.0]
- Update Telegram API to 6.8: https://core.telegram.org/bots/api#august-18-2023
- Fix return types for arrays
[0.40.0]
- getMyCommands and deleteWebhook has parameters
- Update Telegram API to 6.7: https://core.telegram.org/bots/api#april-21-2023
- Models fields now can have union types
- Add Webhook updates adapter
- Remove InputFile, it wasn't a real model
[0.34.0]
- Update Telegram API to 6.6: https://core.telegram.org/bots/api#march-9-2023
- Breaking changes from the API:
thumb fields renamed to thumbnail on models and methods.
[0.33.0]
- Update Telegram API to 6.5: https://core.telegram.org/bots/api#february-3-2023
- import Config instead of use Mix.Config
[0.32.0]
- Add test_environment config and build path accordingly
[0.31.0]
- Update Telegram API to 6.4: https://core.telegram.org/bots/api#december-30-2022
[0.30.0]
- Update Telegram API to 6.3: https://core.telegram.org/bots/api#november-5-2022
[0.29.0]
- Add SendDocument response and answer_document DSL
[0.28.0]
- [Major] Update Telegram API to 6.2: https://core.telegram.org/bots/api#august-12-2022
[0.27.0]
- [Major] Update Telegram API to 6.0: https://core.telegram.org/bots/api#april-16-2022
[0.26.0]
- Update Telegram API to 5.6
[0.25.0]
- Update Telegram API to 5.4
[0.24.1]
- Add original API descriptions to methods and models
[0.24.0]
- Update Telegram API to 5.3
- Breaking changes from the API:
Renamed method kickChatMember to banChatMember
Renamed method getChatMembersCount to getChatMemberCount
ChatMember now has specific subtypes (ChatMemberOwner, ChatMemberAdministrator, ChatMemberMember, ChatMemberRestricted, ChatMemberLeft, ChatMemberBanned)
BotCommandScope now has specific subtypes (BotCommandScopeDefault, BotCommandScopeAllPrivateChats, BotCommandScopeAllGroupChats, BotCommandScopeAllChatAdministrators, BotCommandScopeChat, BotCommandScopeChatAdministrators, BotCommandScopeChatMember)
[0.23.0]
- Update Telegram API to 5.2
[0.22.0]
- Update Telegram API to 5.1
- Add credo and fix all the issues
[0.21.0]
- Add
{:file_content, "CONTENT", "filename.ext"}format onfilefields to send content directly instead of using a file path
[0.20.0]
- Big refactor fixing bugs on the process
[0.15.0]
- Update Telegram API to 5.0
- extractor.py now copy to clipboard the autogenerated text
[0.14.0]
- Update Telegram API to 4.8
[0.13.0]
- Use Supervisor.init instead of supervisor/1
- Add "description" option to
commandmacro - Add
setup_commandsoption touse ExGram.Botto send the commands at startup
[0.12.0]
- Use new generator using a generic JSON
[0.11.0]
- Update Telegram API to 4.7
[0.10.0]
- Update Telegram API to 4.6
[0.9.0]
- Warn when fetching token by bot's name and there are no token
- Update Telegram API to 4.5
[0.8.1]
- Add the ability to configure custom tesla middlewares
- Fix regex macros, couldn't compile
[0.8.0]
- Add Tesla adapter for HTTP and setting it as default
- Add ability to select Tesla adapter (tested with hackney and gun)
- Added documentation
- Added template for creating a bot
[0.7.1]
- Fix an error when not receiving updates the local update_id keeps increasing and makes an infinite loop of retrieving updates
[0.7.0]
- Update to BOT API 4.4
- Set a softer version in README
[0.6.2]
- Update to BOT API 4.3
[0.6.1]
- Update to BOT API 4.2
- Add default handle_info handler and change timeout
- Remove Supervisor.Spec uses, clean start_link and child_spec code
[0.6.0]
- Handle when update_worker is nil and raise a better message
- Add
{:edited_message, msg}message - Relax hackney version
- Allow to specify JSON engine to use
config :ex_gram, json_encoder: Jason - Http implementation details moved from
ExGramtoExGram.Adapter.Http