- Added support up to Bot API v3.5: sticker sets, chats administration, live location, etc
- Added
runTelegramClient
with different than inrunClient
order of arguments. Now possible to writerunTelegramClient token manager $ do
- Stop adding request specific responses
- Stop adding IO calls, use functions with
M
suffix, for examplerunClient getWebhookInfoM
- Upgraded to servant-0.11
- New fields gif_duration in
InlineQueryResultGif
and mpeg4_duration inInlineQueryResultMpeg4Gif
. - Replaced the field new_chat_member in
Message
with new_chat_members (the old field will still be available for a while for compatibility purposes). - The
User
object now may have a language_code field that contains the IETF language tag of the user's language. - Added the
sendVideoNote
method, the new field video_note toMessage
, the fieldsRecordVideoNote* or *UploadVideoNote* to
sendChatAction`. - Added a new type of button, the pay button to
InlineKeyboardButton
. - Updated dependencies
- Added new kinds of updates, shipping_query and pre_checkout_query, and new types of message content, invoice and successful_payment.
- Added new methods for payments:
sendInvoiceM
,answerShippingQueryM
, andanswerPreCheckoutQueryM
.
Bugfixes:
- Migration to
Int64
to represent chat id and fix integer overflow issue
- Added
ChatId
data type since it can be integer or string starting from@
, f.e.@channelusername
- Changes in
getUpdates
andgetUpdateM
function
- Bump aeson upper bound to include 1.1.*
- Added
TelegramClient
, see example of usage in README.md - Changes from December update of Telegram Bot API
TelegramBotAPI
splitted in separate sub-types
Features:
- Added webhook methods such as getWebhookInfo, deleteWebhook, etc.
- Changes to update api
- Added sendGame
Updated to use servant-0.9 and aeson-1.0
Features:
- [Breaking] Changed
Response
data record to be generic - Added certificate upload to set web-hook method for self-signed certificates
Bugfixes:
- Removed
O2
tag from cabal file
Bugfixes:
- Exposed
MessageEntity
Features:
- Added Inline Keyboard to messages
Features:
- Bot-2.1 support
- 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
inUpdate
,edit_date
inMessage, user in
MessageEntity. New value
text_mentionfor the type field in
MessageEntity`.
- Added new methods:
Features:
- Implemented file uploading for audio, voice, sticker, video and documents
Bugfixes:
- Exposed constrictors for inline edit requests
Bugfixes:
- Parsing issue with answer callback query response
Features:
- Bot-2.0 API support is almost complete. Everything from announce is on place except file upload (works for photo BTW).
- Inline keyboards
- Updating messages
- Send Location and Phone number
- Inline Bots 2.0
- Group Admins
- and many others
- Added new and more convenient way to create request data records avoiding many optional parameters.
- migrated to servant 0.7.*
Features:
- Added possibility to upload and send photo
Bugfixes:
- [Breaking] Changed User to be optional in
from
field of theMessage
data record since sender can be empty for messages sent to channels
Bugfixes:
- Minor fix of chat action deserialization code
Features:
- Added reply keyboard
Features:
- Main functionality is on place except content upload.
- Inline mode added