Naltox / telegram-node-bot

Node module for creating Telegram bots.
MIT License
723 stars 143 forks source link

Add posibility to pass options using $.runMenu command. #3

Closed damintsew closed 8 years ago

damintsew commented 8 years ago

To enable markup in messages consider to add options as optional parameter for $.runMenu command

Naltox commented 8 years ago

It's a great idea, but i don't think it's the right way to implemet it. I think that options need to be directly it the menu object, because you may need add options to submenu.

damintsew commented 8 years ago

Oh.. I forgot about sub menues. Because for my needs is only for top level menu :)

Also consider to parametrize this params: hide_keyboard: true, resize_keyboard: true, one_time_keyboard: true, Cause someday someone would like to override them.