I am encountering an issue with the following code snippet:
const myObj = {
reply(text: string, options?: Bot.SendMessageOptions)
{
return bot.sendMessage(msg.chat.id, text, { reply_to_message_id: msg.message_id, ...options });
},
replyMd(text: string, options?: Bot.SendMessageOptions)
{
return this.reply(text, { parse_mode: "Markdown" });
}
};
Despite my efforts to call replyMd
, I am facing a problem where this
remains undefined. How can I resolve this issue?