Update to Bot API 6.6 #2
Labels
No labels
Bug
Cannot Resolve
Completed
Enhancement
Important
Question
Resolved
Security Issue
Suggestion
Todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Nosial/tgbotlib#2
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
On March 9, 2023, Telegram released a new update to their Telegram Bot API and reflected the changes in their latest change-log, to which this library must try to implement to the best of it's capabilities, below are the change-logs from Telegram alongside with their completion status checked off the list.
Added support for .WEBP files in createNewStickerSet and addStickerToSet.Added support for .WEBP, .TGS, and .WEBM files in uploadStickerFile by replacing the parameter png_sticker in the method uploadStickerFile with the parameters sticker and sticker_format.Added support for .WEBP files in createNewStickerSet and addStickerToSet.Added the ability to specify search keywords for stickers added to sticker sets.Renamed the fields thumb_url, thumb_width, and thumb_height in the classes InlineQueryResultArticle, InlineQueryResultContact, InlineQueryResultDocument, InlineQueryResultLocation, and InlineQueryResultVenue to thumbnail_url, thumbnail_width, and thumbnail_height respectively.Renamed the field thumb_url in the classes InlineQueryResultPhoto and InlineQueryResultVideo to thumbnail_url.Renamed the fields thumb_url and thumb_mime_type in the classes InlineQueryResultGif, and InlineQueryResultMpeg4Gif to thumbnail_url and thumbnail_mime_type respectively.assigned to @netkas
changed the description
changed the description
changed the description
marked the checklist item Added the ability to set different bot descriptions for different user languages using the method setMyDescription. as completed
Added the ability to set different bot descriptions for different user languages using the method
\TgBotLib\Bot > setMyDescription()
see setMyDescription for more information.marked the checklist item Added the ability to get the current bot description in the given language as the class BotDescription using the method getMyDescription. as completed
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.marked the checklist item Added the ability to set different bot short descriptions for different user languages using the method setMyShortDescription. as completed
Added the ability to set different bot short descriptions for different user languages using the method
\TgBotLib\Bot > setMyShortDescription()
see setMyShortDescription for more information.marked the checklist item Added the ability to get the current bot short description in the given language as the class BotShortDescription using the method getMyShortDescription. as completed
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.marked the checklist item Added the parameter emoji to the method sendSticker to specify an emoji for just uploaded stickers. as completed
Added method
\TgBotLib\Bot > sendSticker()
to send a sticker to a chat. See sendSticker for more information.marked the checklist item Added support for the creation of custom emoji sticker sets in createNewStickerSet. as completed
Added method
\TgBotLib\Bot > createNewStickerSet()
to create a new sticker set owned by a user. See createNewStickerSet for more information.changed the description
changed the description
marked the checklist item Added the parameter needs_repainting to the method createNewStickerSet to automatically change the color of emoji based on context (e.g., use text color in messages, accent color in statuses, etc.). as completed
mentioned in commit
65564ecb2a
marked the checklist item Added the field needs_repainting to the class Sticker. as completed
Added the field needs_repainting to the Sticker class which can be obtained via
TgBotLib\Objects\Telegram > Sticker > needsRepainting()
mentioned in commit
37a136adce
marked the checklist item Replaced the parameters png_sticker, tgs_sticker, webm_sticker, emojis and mask_position in the method addStickerToSet with the parameter sticker of the type InputSticker. as completed
Added method
\TgBotLib\Bot > addStickerToSet()
to add a new sticker to a set created by the bot. See addStickerToSet for more information.marked the checklist item Added support for the creation of sticker sets with multiple initial stickers in createNewStickerSet by replacing the parameters png_sticker, tgs_sticker, webm_sticker, emojis and mask_position with the parameters stickers and sticker_format. as completed
marked the checklist item Added support for .WEBP files in createNewStickerSet and addStickerToSet. as completed
mentioned in commit
4dc5e9e20d
Added abstract class
\TgBotLib\Abstracts > StickerFormat
to represent a sticker format ("static
", "animated
" or "video
")mentioned in commit
595872c997
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.marked the checklist item Added support for .WEBP, .TGS, and .WEBM files in uploadStickerFile by replacing the parameter png_sticker in the method uploadStickerFile with the parameters sticker and sticker_format. as completed
marked the checklist item Added support for .WEBP files in createNewStickerSet and addStickerToSet. as completed
marked the checklist item Added the ability to specify search keywords for stickers added to sticker sets. as completed
mentioned in commit
007304c8ca
marked the checklist item Added the method setCustomEmojiStickerSetThumbnail for editing the thumbnail of custom emoji sticker sets created by the bot. as completed
Added method
\TgBotLib\Bot > setCustomEmojiStickerSetThumbnail()
to set the thumbnail of a sticker set. See setCustomEmojiStickerSetThumbnail for more information.mentioned in commit
4d3ba7004e
Renamed
thumb
field inTgBotLib\Objects\Telegram > Animation
tothumbnail
mentioned in commit
af8fabceaa
Renamed
thumb
field inTgBotLib\Objects\Telegram > Audio
tothumbnail
mentioned in commit
3ae16b96e1
Renamed
thumb
field inTgBotLib\Objects\Telegram > Document
tothumbnail
Renamed
thumb
field inTgBotLib\Objects\Telegram > Sticker
tothumbnail
& FixedTgBotLib\Objects\Telegram > Sticker > toArray()
to properly return thepremium_animation
fieldmentioned in commit
da8108c196
Renamed
thumb
field inTgBotLib\Objects\Telegram > Video
tothumbnail
mentioned in commit
97fe1f33ad
Renamed
thumb
field inTgBotLib\Objects\Telegram > VideoNote
tothumbnail
mentioned in commit
b4e0f62e99
Added object
\TgBotLib\Objects\Telegram > StickerSet
to represent a sticker set.marked the checklist item Renamed the field thumb in the classes Animation, Audio, Document, Sticker, Video, VideoNote, InputMediaAnimation, InputMediaAudio, InputMediaDocument, InputMediaVideo, StickerSet to thumbnail. as completed
marked the checklist item Renamed the parameter thumb in the methods sendAnimation, sendAudio, sendDocument, sendVideo, sendVideoNote to thumbnail. as completed
mentioned in commit
917077c19a
Added method
\TgBotLib\Bot > setStickerSetThumbnail()
to set the thumbnail of a sticker set. See setStickerSetThumbnail for more information.marked the checklist item Renamed the method setStickerSetThumb to setStickerSetThumbnail and its parameter thumb to thumbnail. as completed
changed the description
marked the checklist item
Renamed the field thumb_url in the classes InlineQueryResultPhoto and InlineQueryResultVideo to thumbnail_url.as completedmarked the checklist item
Renamed the fields thumb_url and thumb_mime_type in the classes InlineQueryResultGif, and InlineQueryResultMpeg4Gif to thumbnail_url and thumbnail_mime_type respectively.as completedchanged the description
marked the checklist item
Renamed the fields thumb_url, thumb_width, and thumb_height in the classes InlineQueryResultArticle, InlineQueryResultContact, InlineQueryResultDocument, InlineQueryResultLocation, and InlineQueryResultVenue to thumbnail_url, thumbnail_width, and thumbnail_height respectively.as completedchanged the description
Some of these changes are not applicable to the library as there's no support for Input objects yet.
mentioned in commit
5283416292
marked the checklist item Added the method setStickerSetTitle for editing the title of sticker sets created by the bot. as completed
Added method
\TgBotLib\Bot > setStickerSetTitle()
to set the title of a sticker set. See setStickerSetTitle for more information.mentioned in commit
d171c61e7f
marked the checklist item Added the method deleteStickerSet for complete deletion of a given sticker set that was created by the bot. as completed
Added method
\TgBotLib\Bot > deleteStickerSet()
to delete a sticker set. See deleteStickerSet for more information.mentioned in commit
174210da67
marked the checklist item Added the method setStickerEmojiList for changing the list of emoji associated with a sticker. as completed
Added method
\TgBotLib\Bot > setStickerEmojiList()
to set the list of emojis for a sticker set. See setStickerEmojiList for more information.mentioned in commit
54fc17b549
marked the checklist item Added the method setStickerKeywords for changing the search keywords assigned to a sticker. as completed
Added method
\TgBotLib\Bot > setStickerKeywords()
to set the list of emojis for a sticker set. See setStickerKeywords for more information.mentioned in commit
fb1a844526
marked the checklist item Added the method setStickerMaskPosition for changing the mask position of a mask sticker. as completed
Added method
\TgBotLib\Bot > setStickerMaskPosition()
to change the mask position of a mask sticker. See setStickerMaskPosition for more information.All changes introduced.