fizruk / telegram-bot-simple

Easy to use library for building Telegram bots in Haskell.
BSD 3-Clause "New" or "Revised" License
107 stars 52 forks source link

Bot API 6.6 #142

Closed swamp-agr closed 1 year ago

swamp-agr commented 1 year ago

Bot API 6.6

See https://core.telegram.org/bots/api for changelog

  1. [X] new setMyDescription method
  2. [X] new getMyDescription method
  3. [X] new setMyShortDescription method
  4. [X] new getMyShortDescription method
  5. [x] modify sendSticker: add emoji
  6. [x] modify createNewStickerSet:
    • modify sticker -> stickers (see below),
    • new InputSticker type (some fields from request should move here),
    • new sticker_format field,
    • new sticker_type field
    • new needs_repainting field.
  7. [x] modify Sticker type add needs_repainting field.
  8. [x] modify addStickerToSet method:
    • modify sticker -> stickers (see below),
    • use InputSticker type (again some fields from request should move here).
  9. [x] modify uploadStickerFile method (request):
    • remove png_sticker field,
    • add sticker field,
    • add sticker_format field.
  10. [x] new setCustomEmojiStickerSetThumbnail method.
  11. [x] new setStickerSetTitle method.
  12. [x] new deleteStickerSet method.
  13. [x] new setStickerEmojiList method.
  14. [x] new setStickerKeywords method.
  15. [x] new setStickerMaskPosition method.
  16. [x] rename the field thumb in the classes Animation, Audio, Document, Sticker, Video, VideoNote, InputMediaAnimation, InputMediaAudio, InputMediaDocument, InputMediaVideo, StickerSet to thumbnail.
  17. [x] rename the parameter thumb in the methods sendAnimation, sendAudio, sendDocument, sendVideo, sendVideoNote to thumbnail.
  18. [x] rename the method setStickerSetThumb to setStickerSetThumbnail and its parameter thumb to thumbnail.
  19. [x] rename 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.
  20. [x] rename the field thumb_url in the classes InlineQueryResultPhoto and InlineQueryResultVideo to thumbnail_url.
  21. [x] rename the fields thumb_url and thumb_mime_type in the classes InlineQueryResultGif, and InlineQueryResultMpeg4Gif to thumbnail_url and thumbnail_mime_type respectively.

Given the amount of new stickers method it is reasonable to split the module onto multiple sub-modules and then re-import them in Telegram.Bot.API.Stickers.

swamp-agr commented 1 year ago

Closed via #152.

Splitting Stickers on sub-modules was removed from the scope of the issue.