Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

0x114514BB
Copy link

  • All tests pass (I did't run tests since I have no payment provider token yet)
  • I have run npm run doc

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant