2023-02-20 21:47:32 -05:00
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog ](https://keepachangelog.com/en/1.0.0/ ),
and this project adheres to [Semantic Versioning ](https://semver.org/spec/v2.0.0.html ).
2023-04-23 13:33:29 -04:00
## [6.7.0] - Unreleased
This update accompanies the release of the [Telegram Bot API 6.7 ](https://core.telegram.org/bots/api#april-21-2023 ).
2023-04-10 21:00:11 -04:00
## [6.6.0] - 2023-04-10
2023-02-28 22:19:59 -05:00
2023-04-06 13:46:03 -04:00
This update accompanies the release of the [Telegram Bot API 6.6 ](https://core.telegram.org/bots/api#march-9-2023 ).
2023-04-06 13:22:09 -04:00
### Added
* Added the ability to set different bot descriptions for different user languages using the method `\TgBotLib\Bot > setMyDescription()`
2023-04-06 13:39:51 -04:00
see [setMyDescription ](https://core.telegram.org/bots/api#setmydescription ) for more information.
2023-04-06 13:33:29 -04:00
* Added the ability to get the current bot description in the given language as the class [BotDescription ](https://core.telegram.org/bots/api#botdescription )
2023-04-06 13:39:51 -04:00
using the method `\TgBotLib\Bot > getMyDescription()` see [getMyDescription ](https://core.telegram.org/bots/api#getmydescription ) for more information.
* Added the ability to set different bot short descriptions for different user languages using the method `\TgBotLib\Bot > setMyShortDescription()`
see [setMyShortDescription ](https://core.telegram.org/bots/api#setmyshortdescription ) for more information.
2023-04-06 13:47:53 -04:00
* Added the ability to get the current bot short description in the given language as the class [BotShortDescription ](https://core.telegram.org/bots/api#botshortdescription )
using the method `\TgBotLib\Bot > getMyShortDescription()` see [getMyShortDescription ](https://core.telegram.org/bots/api#getmyshortdescription ) for more information.
2023-04-06 13:54:48 -04:00
* Added method `\TgBotLib\Bot > sendSticker()` to send a sticker to a chat. See [sendSticker ](https://core.telegram.org/bots/api#sendsticker ) for more information.
2023-04-07 01:37:01 -04:00
* Added method `\TgBotLib\Bot > createNewStickerSet()` to create a new sticker set owned by a user. See [createNewStickerSet ](https://core.telegram.org/bots/api#createnewstickerset ) for more information.
2023-04-10 16:05:17 -04:00
* Added the field _needs_repainting_ to the [Sticker ](https://core.telegram.org/bots/api#sticker ) class
which can be obtained via `TgBotLib\Objects\Telegram > Sticker > needsRepainting()`
2023-04-10 16:10:19 -04:00
* Added method `\TgBotLib\Bot > addStickerToSet()` to add a new sticker to a set created by the bot.
See [addStickerToSet ](https://core.telegram.org/bots/api#addstickertoset ) for more information.
2023-04-10 17:37:43 -04:00
* Added abstract class `\TgBotLib\Abstracts > StickerFormat` to represent a sticker format ("`static` ", "`animated` " or "`video` ")
2023-04-10 17:39:34 -04:00
* Added method `\TgBotLib\Bot > uploadStickerFile()` to upload a sticker file with a sticker for later use in `createNewStickerSet` and `addStickerToSet` methods (can be used multiple times).
See [uploadStickerFile ](https://core.telegram.org/bots/api#uploadstickerfile ) for more information.
2023-04-10 17:43:37 -04:00
* Added method `\TgBotLib\Bot > setCustomEmojiStickerSetThumbnail()` to set the thumbnail of a sticker set.
See [setCustomEmojiStickerSetThumbnail ](https://core.telegram.org/bots/api#setcustomemojistickersetthumbnail ) for more information.
2023-04-10 19:38:06 -04:00
* Added object `\TgBotLib\Objects\Telegram > StickerSet` to represent a sticker set.
2023-04-10 19:42:14 -04:00
* Added method `\TgBotLib\Bot > setStickerSetThumbnail()` to set the thumbnail of a sticker set.
See [setStickerSetThumbnail ](https://core.telegram.org/bots/api#setstickersetthumbnail ) for more information.
2023-04-10 20:34:14 -04:00
* Added method `\TgBotLib\Bot > setStickerSetTitle()` to set the title of a sticker set.
See [setStickerSetTitle ](https://core.telegram.org/bots/api#setstickersettitle ) for more information.
2023-04-10 20:48:06 -04:00
* Added method `\TgBotLib\Bot > deleteStickerSet()` to delete a sticker set.
See [deleteStickerSet ](https://core.telegram.org/bots/api#deletestickerset ) for more information.
2023-04-10 20:50:50 -04:00
* Added method `\TgBotLib\Bot > setStickerEmojiList()` to set the list of emojis for a sticker set.
See [setStickerEmojiList ](https://core.telegram.org/bots/api#setstickeremojilist ) for more information.
2023-04-10 20:56:03 -04:00
* Added method `\TgBotLib\Bot > setStickerKeywords()` to set the list of emojis for a sticker set.
See [setStickerKeywords ](https://core.telegram.org/bots/api#setstickerkeywords ) for more information.
2023-04-10 20:58:16 -04:00
* Added method `\TgBotLib\Bot > setStickerMaskPosition()` to change the mask position of a mask sticker.
See [setStickerMaskPosition ](https://core.telegram.org/bots/api#setstickermaskposition ) for more information.
2023-04-06 13:22:09 -04:00
2023-02-28 22:19:59 -05:00
### Changed
* Removed unused `__destruct()` method from `\TgBotLib\Bot`
2023-02-28 21:06:05 -05:00
* Added proper construction for `PollOption[]` objects in `TgBotLib\Objects\Telegram > Poll`
2023-04-10 17:47:33 -04:00
* Renamed `thumb` field in `TgBotLib\Objects\Telegram > Animation` to `thumbnail`
2023-04-10 19:03:05 -04:00
* Renamed `thumb` field in `TgBotLib\Objects\Telegram > Audio` to `thumbnail`
2023-04-10 19:06:19 -04:00
* Renamed `thumb` field in `TgBotLib\Objects\Telegram > Document` to `thumbnail`
2023-04-10 19:13:27 -04:00
* Renamed `thumb` field in `TgBotLib\Objects\Telegram > Sticker` to `thumbnail`
2023-04-10 19:16:32 -04:00
* Renamed `thumb` field in `TgBotLib\Objects\Telegram > Video` to `thumbnail`
2023-04-10 19:21:05 -04:00
* Renamed `thumb` field in `TgBotLib\Objects\Telegram > VideoNote` to `thumbnail`
2023-04-10 19:13:27 -04:00
## Fixed
* Fixed `TgBotLib\Objects\Telegram > Sticker > toArray()` to properly return the `premium_animation` field
2023-02-28 21:06:05 -05:00
2023-02-26 19:25:10 -05:00
## [6.5.2] - 2023-02-26
2023-02-26 17:43:15 -05:00
### Added
* Added dependency `net.nosial.tempfile` to create temporary files when uploading content from memory.
* Added `\TgBotLib\Abstracts > ChatActionType`
2023-02-26 19:24:11 -05:00
* Added logging events to `\TgBotLib\Bot > handleUpdate()`
### Fixed
* Fixed file uploads when trying to upload content from memory.
2023-02-26 17:43:15 -05:00
2023-02-23 12:55:22 -05:00
## [6.5.1] - 2023-02-23
### Fixed
2023-02-26 17:43:15 -05:00
* Added a null-safe check for `Poll` 's `explanation_entities` field. [#1 ](https://git.n64.cc/nosial/libs/tgbot/-/issues/1 )
2023-02-23 12:55:22 -05:00
## [6.5.0] - 2023-02-20
2023-02-20 21:47:32 -05:00
### Added
2023-02-26 17:43:15 -05:00
* First Release