oott123 / node-telegram-bot

Create your own Telegram bot in minutes with the official Bot API
https://telegram.me/GaussBot
MIT License
50 stars 12 forks source link

Add optional callback to start(), remove console.log #5

Closed christophetd closed 8 years ago

christophetd commented 9 years ago

Some people (myself included) may not want this console.log. Instead, allowing the user to pass an optional callback to the start method seems better to me. (He could also listen on the connected event, but that's basically a shortcut)

oott123 commented 8 years ago

Thanks for your PR. However you can set callback by using tg.on 'connected' event. console.log will be removed soon.