From 633bd83a0adbaeb72620d58044a642b3d498f2cc Mon Sep 17 00:00:00 2001 From: GochoMugo Date: Mon, 27 Nov 2017 05:14:43 +0300 Subject: [PATCH] src/telegram: JSON-serialize 'mask_position's References: * Similar PR: https://github.com/yagop/node-telegram-bot-api/pull/468 --- src/telegram.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/telegram.js b/src/telegram.js index b5155f1..695abde 100644 --- a/src/telegram.js +++ b/src/telegram.js @@ -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];