telegraf / micro-bot

:robot: Zero-configuration Telegram bot runner
MIT License
182 stars 29 forks source link

fetching Bot info from telegram #3

Closed shrynx closed 7 years ago

shrynx commented 7 years ago

Hi ! Thanks for making telegraf and micro bot, makes bot development extremely simple. i have one issue, i am not sure how to get botInfo (the one from telegram.getInfo()). I don't want to instantiate telegram again as it is automatically done by microbot.

It would be extremely helpful if i could access it from micro-bot.

const { Composer, botInfo } = require('micro-bot');

If this is valuable for you, i will try making a PR for it.

dotcypress commented 7 years ago

Hey.

Thank you for feedback! 👍

From version 1.3.2 you can obtain bot info from update context.

shrynx commented 7 years ago

i was looking at docs and wondering how i missed it ! Haha, this just happened today !

dotcypress commented 7 years ago

Brand new feature 😎