Skip to content

Releases: nv-vn/TelegraML

v2.2.1

08 Oct 19:23
a8ce5de
Compare
Choose a tag to compare

Removes Batteries dependency and some minor code cleanup

v2.2.0

20 Dec 02:22
Compare
Choose a tag to compare

Updates to OCaml 4.0.6, Cohttp 1.0.0, switches to jbuilder, and adds two new parameters for send_message.

v2.1.4

20 Jun 21:26
Compare
Choose a tag to compare

Changelog:

This update adds the Telegram.Actions module, which is a set of convenience functions for creating Telegram.Api.Command.action values. The module includes functions with named and optional arguments to make the purpose of each argument clear and help shorten code, the /> operator (which pipes the result of an action into a function that returns an action), the /+ action (which chains two actions together sequentially), and the sequence function (which chains all the actions provided in a list together sequentially).

v2.1.3

03 Jun 21:30
Compare
Choose a tag to compare

v2.1.3 Changelog:

This update mostly consists bug fixes for features that I didn't implement correctly for the API but it also includes some new features:

New features:

  • Changes to using tagged unions for the Update.update type (Message vs. EditedMessage, etc.)
  • Adds a callback : CallbackQuery.callback_query -> Command.action field to Api.BOT for handling callback queries

Fixes:

  • MessageId` and ChatId have now been correctly merged into ``ChatMessageId since the API requires both to be sent together

v2.1.2

27 May 17:14
Compare
Choose a tag to compare
  • Add support for with_auth function to make commands only available to chat administrators
  • Add default run function for generated bot module

v2.1.1

22 May 17:25
Compare
Choose a tag to compare

Makes TelegraML compatibile with Bot API 2.1:

  • Added more tools for group administrator bots. Your bot can now get a list of administrators and members count in a group, check a user's current status (administrator, creator, left the group, kicked from the group), and leave a group.
  • Added new methods: getChat, leaveChat, getChatAdministrators, getChatMember, getChatMembersCount.
  • Added support for edited messages and new mentions from Telegram v.3.9. New fields: edited_message in Update, edit_date in Message, user in MessageEntity. New value text_mention for the type field in MessageEntity.

v2.1.0

14 May 23:33
Compare
Choose a tag to compare

Changelog:

  • Brings TelegraML up-to-date with the Telegram API as of May 14, 2016
  • Adds:
    • Sticker.emoji - The emoji that a sticker corresponds to
    • Message.forward_from_chat - Tells what chat a forwarded message came from if it was from a group chat
    • Support for high-level chat events (new_chat_member, etc.) configurable from the BOT
    • Ability to ignore commands meant for other bots when not in privacy mode (using BOT.command_postfix)

v2.0.0

10 May 22:52
Compare
Choose a tag to compare

This update brings TelegraML up-to-date with the Bots 2.0 API. It's still missing a few changes that will come within the next few days/weeks, but I think getting the release out there is pretty important for the time being.

The changelog is essentially identical to the one listed here.

Note that a whole lot of old code will break as this version adds breaking changes, so only update to 2.0.0 if you're prepared to update for the new API or are starting out a new bot.

v1.2

10 Apr 23:50
Compare
Choose a tag to compare

Changelog:

  • Adds:
    • High-level interface for inline queries
    • User-profile pictures
    • Added the BotDefaults : BOT module for easier bot configuration
    • Remaining fields of Message.message added
    • More tests/examples
  • Fixes:
    • Serialization bug introduced in v1.1 with some inline queries

Changed the type of InlineQuery.Out.prepare to return JSON instead of strings

v1.1

06 Apr 07:13
Compare
Choose a tag to compare

Changelog:

  • Adds:
    • Inline bots
    • getFile method
    • File downloading

No incompatibilities with v1.0