Open mbogomazov opened 3 years ago
Right now many of specific telegram features like mentions, pictures, stickers, polls and so on - are not supported. Just basic messaging. But adding it is pretty simple - PRs welcome!
Okay, I'm ready to implement it but I can't understand, why bot doesn't get all options which I sent because in makeMessage
function there should be all of them(due to merge
function)
makeMessage(messageText, options = {}) {
return merge({
botToken: this.botToken,
from: {id: this.userId, first_name: this.firstName, username: this.userName},
chat: {
id: this.chatId,
title: this.chatTitle,
first_name: this.firstName,
username: this.userName,
type: this.type,
},
date: Math.floor(Date.now() / 1000),
text: messageText,
}, options);
}
So in which modules I should add handlers of different options(i.e. for entities, files, location)?
Try to send this message to a bot(Telegraf.js library)
but bot receive only
(without entities). I also tried to send location but bot didn't get too. How to fix it? Or maybe I should use another method or parameters?