micro-bot icon indicating copy to clipboard operation
micro-bot copied to clipboard

Access Telegram API

Open realies opened this issue 7 years ago • 2 comments

Is it possible to access Telegram API such as bot.telegram.sendMessage via micro-bot?

realies avatar Nov 17 '18 21:11 realies

@realies

You can define method like this and use bot.telegram.sendMessage

bot.init = async (mBot) => {
    bot.telegram = mBot.telegram;
}

AxelRUS avatar Dec 22 '18 03:12 AxelRUS

Can this be added to the repo so it is available by default?

realies avatar Dec 26 '18 15:12 realies