Changelog for telegram-bot-api-7.4.5
telegram-bot-api
7.4.5 -- 2025-05-12
- Fix
UsersShareddata type (see #200). - Fix
WebAppInfodata type (see #202). - Fix support of
text-2.1.2.0(see #203).
7.4.4 -- 2024-11-24
- Fix
message_thread_idforcopyMessage,copyMessages(see #198).
7.4.3 -- 2024-11-07
- Remove unused packages (see #194).
- Remove unused pragmas and apply other hlint suggestions (see #195).
7.4.2 -- 2024-10-31
7.4.1 -- 2024-10-20
- Fix
inline_messaige_idtype representation (see #191).
7.4 -- 2024-06-02
- Types:
InlineQueryResulttype extended withshow_caption_above_mediafield.provider_tokenfield documentation was updated forInputMessageContenttype.InputMediaGenerictype extended withshow_caption_above_mediafield.Messagetype extended witheffect_id,show_caption_above_mediafields.MessageEntitytype extended withMessageEntityExpandableBlockquoteconstructor.
- Methods:
sendGamemethod request extended withmessage_effect_idfield.copyMessagemethod request extended withshow_caption_above_mediafield.editMessageCaptionmethod request extended withshow_caption_above_mediafield.sendAnimationmethod request extended withmessage_effect_id,show_caption_above_mediafields.sendAudiomethod request extended withmessage_effect_idfield.sendContactmethod request extended withmessage_effect_idfield.sendDicemethod request extended withmessage_effect_idfield.sendDocumentmethod request extended withmessage_effect_idfield.sendLocationmethod request extended withmessage_effect_idfield.sendMediaGroupmethod request extended withmessage_effect_idfield.sendMessagemethod request extended withmessage_effect_idfield.sendPhotomethod request extended withmessage_effect_id,show_caption_above_mediafields.sendPollmethod request extended withmessage_effect_idfield.sendPollmethod request extended withmessage_effect_idfield.sendStickermethod request extended withmessage_effect_idfield.sendVideomethod request extended withmessage_effect_id,show_caption_above_mediafields.sendVideoNotemethod request extended withmessage_effect_idfield.sendVoicemethod request extended withmessage_effect_id,show_caption_above_mediafields.provider_tokenfield documentation was updated forcreateInvoiceLinkmethod.provider_tokenfield documentation was updated forsendInvoicemethod.refundStarPaymentmethod added.
7.3.1 -- 2024-05-26
- Fix parsers for
InlineQueryResult,BackgroundType,ChatBoostSource,MessageOrigin.
7.3 -- 2024-05-25
- Drop support GHC 8.10, 9.0, add support GHC 9.8, 9.10 (see #182).
- Fix missing
blockquoteMessageEntityType (see #184).
Bot API 7.1 support
See #181.
- Add
ChatBoostAddedtype. - Modify existing types:
Chat,ChatAdministratorRights,Message,Story.
Bot API 7.2 support
See #182.
- Add new types:
Birthdate,BusinessIntro,BusinessLocation,BusinessOpeningHours,BusinessOpeningHoursInterval,SharedUser.
- Modify existing types:
BusinessConnection,BusinessMessageDeleted,Chat,ChatShared,KeyboardButtonRequestChat,KeyboardButtonRequestUser,Message,InputSticker,UsersShared. - Add new methods:
GetBusinessConnection.
- Modify existing methods (with business connection identifier mostly):
sendGameRequest,sendAnimation,sendAudio,sendChatAction,sendContact,sendDice,sendDocument,sendLocation,sendMediaGroup,sendMessage,sendPhoto,sendPoll,sendVenue,sendVideo,sendVideoNote,sendVoice,sendSticker.
Bot API 7.3 support
See #183.
- Add new types:
BackgroundType,BackgroundFill,ChatBackground,InputPollOption.
Chattype split intoChat,ChatTypeandChatFullInfo(most ofChatfields were moved there).- Modify existing types:
ChatMemberUpdated,GiveawayWinners,InlineKeyboardButton,Message,Poll,PollOption.
- Modify existing methods:
editMessageLiveLocation,getChat,sendPoll.
7.0 -- 2024-02-06
- Support GHC 9.6 (see #163).
Bot API 6.8 support
See #165.
- Add new methods:
unpinAllGeneralForumTopicMessages.
- Add new types:
Story.
- Modify existing types:
Message,Chat,PollAnswer.
Bot API 6.9 support
See #168.
- Modify methods:
promoteChatMember.
- Modify types:
ChatMember.ChatAdministratorRightsWriteAccessAllowed.
Bot API 7.0 support
See #169.
- Reactions:
- New types:
ReactionType,ReactionCount,MessageReactionUpdated,MessageReactionCountUpdated. - Modified types:
Chat. - New method:
setMessageReaction.
- New types:
- Replies 2.0:
- New types:
ExternalReplyInfo,MessageOrigin,TextQuote,ReplyParameters. - Modified types:
Message. - Modified methods:
copyMessage,sendAnimation,sendAudio,sendContact,sendDice,sendDocument,sendGame,sendInvoice,sendLocation,sendMediaGroup,sendMessage,sendPhoto,sendPoll,sendSticler,sendVenue,sendVideo,sendVideoNote,sendVoice.
- New types:
- Link Preview Customization:
- New type:
LinkPreviewOptions. - Modified types:
Message. - Modified methods:
editMessage,sendMessage.
- New type:
- Multiple Message Actions:
- New methods:
copyMessages,deleteMessagesandforwardMessages.
- New methods:
- Request for multiple users:
- Deteled type:
KeyboardButtonRequestUser - New types:
KeyboardButtonRequestUsers,UsersShared. - Modified types:
KeyboardButton,Message.
- Deteled type:
- Chat Boost:
- New types:
ChatBoost,ChatBoostRemoved,ChatBoostSource,ChatBoostUpdated,UserChatBoosts. - New methods:
getUserChatBoosts.
- New types:
- Giveaway:
- New types:
Giveaway,GiveawayCompleted,GiveawayCreated,GiveawayWinners. - Modified type:
Message.
- New types:
- Other changes:
Messagecould become inaccessible, seeisInaccessibleMessagehelper.CallbackQuerydocumentation improved.Chattype has been updated with extra fields, also enabled preliminary support ofWebApp.
6.7.1 -- 2023-06-26
- Fix Inline Mode (see #157).
6.7 -- 2023-04-29
Bot API 6.6 support
-
Add new methods:
setMyDescription,getMyDecription,setMyShortDescription,getMyShortDescription.setCustomEmojiStickerSetThumbnail,setStickerSetTitle,deleteStickerSet,setStickerEmojiList,setStickerKeywords,setStickerMaskPosition.
-
Modify following methods:
sendSticker(addemoji).createNewStickerSet,addStickerToSet(stickertostickers, introducedInputSticker).uploadStickerFile(removepng_stickerand other formats, addsticker,sticker_formatfields).
-
Rename
thumbtothumbnail:- Types:
Animation,Audio,Document,Sticker,Video,VideoNote,InputMediaAnimation,InputMediaAudio,InputMediaDocument,InputMediaVideo,StickerSet. - Inlines:
InlineQueryResultPhoto,InlineQueryResultVideo,InlineQueryResultGif,InlineQueryResultMpeg4Gif. - Methods:
setStickerThumb(method renamed itself tosetStickerThumbnail),sendAnimation,sendAudio,sendDocument,sendVideo,sendVideoNote,
- Types:
-
Modify
Stickertype: addneeds_repaintingfield. -
Breaking changes: Given the amount of Bot API changes, common record fields were moved tonew
InlineQueryResultGenericdata type and all thumbnails were moved to newInlineQueryResultGenericThumbnaildata type. -
Migration guide:
- Provide
InlineQueryResultGeneric(seedefInlineQueryResultGeneric). - Provide
InlineQueryResultGenericThumbnail(seedefInlineQueryResultGenericThumbnail). - Specify your own
InlineQueryResult(see helpers for each data constructor).
- Provide
Bot API 6.7 support
See #155.
- Modify
answerInlineQuerymethod. - Modify
WriteAccessAlloweddata type. - Add missing method
switchInlineQueryChosenChat. - Modify
ChatMemberUpdateddata type. - Add new methods:
setMyName,getMyName.
6.5.1 -- 2023-03-21
- Add new methods
getMyDescription,getMyShortDescription,setMyDescription,setMyShortDescription(see #141). - Re-export Forum, Games, Payments and Stickers in
Telegram.Bot.API.Methods(see #143).
6.5 (Telegram Bot API 6.5)
- Package was originated at 6.5.