yagop / node-telegram-bot-api

Telegram Bot API for NodeJS
MIT License
8.13k stars 1.49k forks source link

Fix: field change from thumb to thumbnail since Bot API 6.6 #1123

Open 0x114514BB opened 9 months ago

0x114514BB commented 9 months ago

Description

As Bot API 6.6 changelog said,

Renamed the field thumb in the classes Animation, Audio, Document, Sticker, Video, VideoNote, InputMediaAnimation, InputMediaAudio, InputMediaDocument, InputMediaVideo, StickerSet to thumbnail.

But the field thumb in _fixAddFileThumbnail function remains unchanged.

Users won't be able to add thumbnail in sendAudio and similar functions if they follow the official API documents unless they use old thumb.

P.S. Users of NTBA also need to update their code since the field change. I wonder whether NTBA's documentation should notice this change or not.

References

Telegram Bot API Changelog 2023-03-09

guoyunhe commented 2 weeks ago

This is cool! @yagop can you merge it?