mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-28 21:07:39 +00:00
src/telegram: JSON-serialize 'mask_position's
References: * Similar PR: https://github.com/yagop/node-telegram-bot-api/pull/468
This commit is contained in:
parent
4586ebd10b
commit
633bd83a0a
@ -1592,6 +1592,7 @@ class TelegramBot extends EventEmitter {
|
||||
opts.qs.name = name;
|
||||
opts.qs.title = title;
|
||||
opts.qs.emojis = emojis;
|
||||
opts.qs.mask_position = JSON.stringify(options.mask_position);
|
||||
try {
|
||||
const sendData = this._formatSendData('png_sticker', pngSticker);
|
||||
opts.formData = sendData[0];
|
||||
@ -1623,6 +1624,7 @@ class TelegramBot extends EventEmitter {
|
||||
opts.qs.user_id = userId;
|
||||
opts.qs.name = name;
|
||||
opts.qs.emojis = emojis;
|
||||
opts.qs.mask_position = JSON.stringify(options.mask_position);
|
||||
try {
|
||||
const sendData = this._formatSendData('png_sticker', pngSticker);
|
||||
opts.formData = sendData[0];
|
||||
|
Loading…
x
Reference in New Issue
Block a user