Skip to content
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.

Access Telegram API #16

Open
realies opened this issue Nov 17, 2018 · 2 comments
Open

Access Telegram API #16

realies opened this issue Nov 17, 2018 · 2 comments

Comments

@realies
Copy link

realies commented Nov 17, 2018

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

@AxelRUS
Copy link

AxelRUS commented Dec 22, 2018

@realies

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

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

@realies
Copy link
Author

realies commented Dec 26, 2018

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

LeonAlvarez added a commit to LeonAlvarez/micro-bot that referenced this issue Oct 3, 2019
I find this useful to access methods see telegraf#16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants