Releases: nv-vn/TelegraML
v2.2.1
v2.2.0
v2.1.4
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
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 toApi.BOT
for handling callback queries
Fixes:
MessageId` and
ChatIdhave now been correctly merged into ``ChatMessageId
since the API requires both to be sent together
v2.1.2
v2.1.1
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
Changelog:
- Brings TelegraML up-to-date with the Telegram API as of May 14, 2016
- Adds:
Sticker.emoji
- The emoji that a sticker corresponds toMessage.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 theBOT
- Ability to ignore commands meant for other bots when not in privacy mode (using
BOT.command_postfix
)
v2.0.0
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
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