0
我試圖從bot向用戶發送除純文本以外的任何內容。例如,我想創建用於發送貼紙的回顯。我正在使用yagop的node-telegram-bot-api。 代碼:無法發送Telegram Bot中的對象
bot = new TelegramBot(token, {
polling: true
});
bot.on('sticker', function(msg){
bot.sendSticker(msg.chat.id, msg.sticker);
});
而且我有Error: ETELEGRAM: 400 Bad Request: there is no sticker in the request
。如果我發送的不是純文本,這會導致每一次。
如何處理這個問題?
就像一個魅力!謝謝! – Tryam