Naltox / telegram-node-bot

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

Using API to send menu to a user. #106

Closed mauris closed 7 years ago

mauris commented 8 years ago

Currently I have a bot that allows users to enter commands in a group chat, in which some of these commands are confirmed with the user who wrote the command by a private message. I wish to show a yes / no menu so that user can respond to the PM to confirm the command.

I can send a PM message using the user's ID. There is $.runMenu, but the API this._api does not provide runMenu. I was looking at ReplyKeyboardMarkup and KeyboardButton but they are not exposed to the developer.

Naltox commented 7 years ago

You cant use 'runMenu' feature outside from controllers, ReplyKeyboardMarkup and ReplyKeyboardMarkup are in Telegram.Models