From e463b81948ce15cee05682fcb843aed1e7f5fa85 Mon Sep 17 00:00:00 2001 From: Netkas Date: Mon, 24 Apr 2023 19:23:17 -0400 Subject: [PATCH] Refactored CHANGELOG.md https://git.n64.cc/nosial/libs/tgbot/-/issues/3 --- CHANGELOG.md | 66 ++++++++++++++++++++++++++-------------------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4651044..b3efc74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,11 +11,11 @@ Additionally, this update includes some bug fixes and improvements such as the a input objects for methods that require input objects. ### Added - * Added object `\TgBotLib\Objects\Telegram\InputMessageContent > InputTextMessageContent` to represent the content of a text message to be sent as the result of an inline query. - * Added object `\TgBotLib\Objects\Telegram\InputMessageContent > InputLocationMessageContent` to represent the content of a location message to be sent as the result of an inline query. - * Added object `\TgBotLib\Objects\Telegram\InputMessageContent > InputVenueMessageContent` to represent the content of a venue message to be sent as the result of an inline query. - * Added object `\TgBotLib\Objects\Telegram\InputMessageContent > InputContactMessageContent` to represent the content of a contact message to be sent as the result of an inline query. - * Added object `\TgBotLib\Objects\Telegram\InputMessageContent > InputInvoiceMessageContent` to represent the content of an invoice message to be sent as the result of an inline query. + * Added object `\TgBotLib\Objects\Telegram\InputMessageContent\InputTextMessageContent` to represent the content of a text message to be sent as the result of an inline query. + * Added object `\TgBotLib\Objects\Telegram\InputMessageContent\InputLocationMessageContent` to represent the content of a location message to be sent as the result of an inline query. + * Added object `\TgBotLib\Objects\Telegram\InputMessageContent\InputVenueMessageContent` to represent the content of a venue message to be sent as the result of an inline query. + * Added object `\TgBotLib\Objects\Telegram\InputMessageContent\InputContactMessageContent` to represent the content of a contact message to be sent as the result of an inline query. + * Added object `\TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent` to represent the content of an invoice message to be sent as the result of an inline query. * Added new exception class `NotImplementedException` to represent the case when a method is not implemented yet or the method is not applicable to the current object. * Added object `\TgBotLib\Objects\Telegram\InlineQueryResult\InlineQueryResultArticle`, see [InlineQueryResultArticle](https://core.telegram.org/bots/api#inlinequeryresultarticle) for more information. * Added object `\TgBotLib\Objects\Telegram\InlineQueryResult\InlineQueryResultPhoto`, see [InlineQueryResultPhoto](hthttps://git.n64.cc/nosial/libs/tgbot/-/issues/3https://git.n64.cc/nosial/libs/tgbot/-/issues/3tps://core.telegram.org/bots/api#inlinequeryresultphoto) for more information. @@ -50,58 +50,58 @@ input objects for methods that require input objects. This update accompanies the release of the [Telegram Bot API 6.6](https://core.telegram.org/bots/api#march-9-2023). ### Added - * Added the ability to set different bot descriptions for different user languages using the method `\TgBotLib\Bot > setMyDescription()` + * Added the ability to set different bot descriptions for different user languages using the method `\TgBotLib\Bot\setMyDescription()` see [setMyDescription](https://core.telegram.org/bots/api#setmydescription) for more information. * Added the ability to get the current bot description in the given language as the class [BotDescription](https://core.telegram.org/bots/api#botdescription) - 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()` + 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. * 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. - * Added method `\TgBotLib\Bot > sendSticker()` to send a sticker to a chat. See [sendSticker](https://core.telegram.org/bots/api#sendsticker) for more information. - * 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. + using the method `\TgBotLib\Bot\getMyShortDescription()` see [getMyShortDescription](https://core.telegram.org/bots/api#getmyshortdescription) for more information. + * Added method `\TgBotLib\Bot\sendSticker()` to send a sticker to a chat. See [sendSticker](https://core.telegram.org/bots/api#sendsticker) for more information. + * 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. * 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()` - * Added method `\TgBotLib\Bot > addStickerToSet()` to add a new sticker to a set created by the bot. + which can be obtained via `TgBotLib\Objects\Telegram\Sticker\needsRepainting()` + * 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. - * Added abstract class `\TgBotLib\Abstracts > StickerFormat` to represent a sticker format ("`static`", "`animated`" or "`video`") - * 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). + * Added abstract class `\TgBotLib\Abstracts\StickerFormat` to represent a sticker format ("`static`", "`animated`" or "`video`") + * 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. - * Added method `\TgBotLib\Bot > setCustomEmojiStickerSetThumbnail()` to set the thumbnail of a sticker set. + * 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. - * Added object `\TgBotLib\Objects\Telegram > StickerSet` to represent a sticker set. - * Added method `\TgBotLib\Bot > setStickerSetThumbnail()` to set the thumbnail of a sticker set. + * Added object `\TgBotLib\Objects\Telegram\StickerSet` to represent a sticker set. + * 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. - * Added method `\TgBotLib\Bot > setStickerSetTitle()` to set the title of a sticker set. + * 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. - * Added method `\TgBotLib\Bot > deleteStickerSet()` to delete a sticker set. + * Added method `\TgBotLib\Bot\deleteStickerSet()` to delete a sticker set. See [deleteStickerSet](https://core.telegram.org/bots/api#deletestickerset) for more information. - * Added method `\TgBotLib\Bot > setStickerEmojiList()` to set the list of emojis for a sticker set. + * 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. - * Added method `\TgBotLib\Bot > setStickerKeywords()` to set the list of emojis for a sticker set. + * 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. - * Added method `\TgBotLib\Bot > setStickerMaskPosition()` to change the mask position of a mask sticker. + * 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. ### Changed * Removed unused `__destruct()` method from `\TgBotLib\Bot` - * Added proper construction for `PollOption[]` objects in `TgBotLib\Objects\Telegram > Poll` - * Renamed `thumb` field in `TgBotLib\Objects\Telegram > Animation` to `thumbnail` - * Renamed `thumb` field in `TgBotLib\Objects\Telegram > Audio` to `thumbnail` - * Renamed `thumb` field in `TgBotLib\Objects\Telegram > Document` to `thumbnail` - * Renamed `thumb` field in `TgBotLib\Objects\Telegram > Sticker` to `thumbnail` - * Renamed `thumb` field in `TgBotLib\Objects\Telegram > Video` to `thumbnail` - * Renamed `thumb` field in `TgBotLib\Objects\Telegram > VideoNote` to `thumbnail` + * Added proper construction for `PollOption[]` objects in `TgBotLib\Objects\Telegram\Poll` + * Renamed `thumb` field in `TgBotLib\Objects\Telegram\Animation` to `thumbnail` + * Renamed `thumb` field in `TgBotLib\Objects\Telegram\Audio` to `thumbnail` + * Renamed `thumb` field in `TgBotLib\Objects\Telegram\Document` to `thumbnail` + * Renamed `thumb` field in `TgBotLib\Objects\Telegram\Sticker` to `thumbnail` + * Renamed `thumb` field in `TgBotLib\Objects\Telegram\Video` to `thumbnail` + * Renamed `thumb` field in `TgBotLib\Objects\Telegram\VideoNote` to `thumbnail` ### Fixed - * Fixed `TgBotLib\Objects\Telegram > Sticker > toArray()` to properly return the `premium_animation` field + * Fixed `TgBotLib\Objects\Telegram\Sticker\toArray()` to properly return the `premium_animation` field ## [6.5.2] - 2023-02-26 ### Added * Added dependency `net.nosial.tempfile` to create temporary files when uploading content from memory. - * Added `\TgBotLib\Abstracts > ChatActionType` - * Added logging events to `\TgBotLib\Bot > handleUpdate()` + * Added `\TgBotLib\Abstracts\ChatActionType` + * Added logging events to `\TgBotLib\Bot\handleUpdate()` ### Fixed * Fixed file uploads when trying to upload content from memory.