-
6.6.0 Stable
released this
2023-04-11 01:01:27 +00:00 | 573 commits to master since this releaseThis update accompanies the release of the Telegram Bot API 6.6.
Added
- Added the ability to set different bot descriptions for different user languages using the method
\TgBotLib\Bot > setMyDescription()
see setMyDescription for more information. - Added the ability to get the current bot description in the given language as the class BotDescription
using the method\TgBotLib\Bot > getMyDescription()
see 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 for more information. - Added the ability to get the current bot short description in the given language as the class BotShortDescription
using the method\TgBotLib\Bot > getMyShortDescription()
see getMyShortDescription for more information. - Added method
\TgBotLib\Bot > sendSticker()
to send a sticker to a chat. See sendSticker for more information. - Added method
\TgBotLib\Bot > createNewStickerSet()
to create a new sticker set owned by a user. See createNewStickerSet for more information. - Added the field needs_repainting to the Sticker class
which can be obtained viaTgBotLib\Objects\Telegram > Sticker > needsRepainting()
- Added method
\TgBotLib\Bot > addStickerToSet()
to add a new sticker to a set created by the bot.
See 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 increateNewStickerSet
andaddStickerToSet
methods (can be used multiple times).
See uploadStickerFile for more information. - Added method
\TgBotLib\Bot > setCustomEmojiStickerSetThumbnail()
to set the thumbnail of a sticker set.
See 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.
See setStickerSetThumbnail for more information. - Added method
\TgBotLib\Bot > setStickerSetTitle()
to set the title of a sticker set.
See setStickerSetTitle for more information. - Added method
\TgBotLib\Bot > deleteStickerSet()
to delete a sticker set.
See deleteStickerSet for more information. - Added method
\TgBotLib\Bot > setStickerEmojiList()
to set the list of emojis for a sticker set.
See setStickerEmojiList for more information. - Added method
\TgBotLib\Bot > setStickerKeywords()
to set the list of emojis for a sticker set.
See setStickerKeywords for more information. - Added method
\TgBotLib\Bot > setStickerMaskPosition()
to change the mask position of a mask sticker.
See setStickerMaskPosition for more information.
Changed
- Removed unused
__destruct()
method from\TgBotLib\Bot
- Added proper construction for
PollOption[]
objects inTgBotLib\Objects\Telegram > Poll
- Renamed
thumb
field inTgBotLib\Objects\Telegram > Animation
tothumbnail
- Renamed
thumb
field inTgBotLib\Objects\Telegram > Audio
tothumbnail
- Renamed
thumb
field inTgBotLib\Objects\Telegram > Document
tothumbnail
- Renamed
thumb
field inTgBotLib\Objects\Telegram > Sticker
tothumbnail
- Renamed
thumb
field inTgBotLib\Objects\Telegram > Video
tothumbnail
- Renamed
thumb
field inTgBotLib\Objects\Telegram > VideoNote
tothumbnail
Fixed
- Fixed
TgBotLib\Objects\Telegram > Sticker > toArray()
to properly return thepremium_animation
field
Downloads
-
Source code (ZIP)
1 download
-
Source code (TAR.GZ)
0 downloads
- Added the ability to set different bot descriptions for different user languages using the method