yagop / node-telegram-bot-api

Telegram Bot API for NodeJS
MIT License
8.34k stars 1.52k forks source link

Fix caption_entities stringify in sendAudio #1121

Closed Sp3rick closed 1 year ago

Sp3rick commented 1 year ago

caption_entities option in sendAudio was not automatically stringified

Description

References

Sp3rick commented 1 year ago

I close because i see that's miss in every function with option caption_entities, should be done something like _fixReplyMarkup, or copy paste this: if( opts.qs.hasOwnProperty( "caption_entities" ) && Array.isArray(opts.qs.caption_entities) ) { opts.qs.caption_entities = stringify(opts.qs.caption_entities); }

for every function with caption_entities option (yes, i added array check)

Sp3rick commented 1 year ago

moved to #1122