mast / telegram-bot-api

First Telegram Bot API node.js library
http://mast.github.io/telegram-bot-api/
MIT License
246 stars 64 forks source link

Confused with reply_markup #14

Closed iMasoud closed 8 years ago

iMasoud commented 8 years ago

Hi. I'm trying to change Keyboard after sending a photo, this is my code:

_... api.sendPhoto( { chat_id: message.chat.id, caption: '', photo: 'img/help.png', replymarkup: {"keyboard" : [['help more!'],['cancel']]} }, function(err, data) { ...

and this is the console output: {}

can you give me an example about syntax of "reply_markup", please?

thank you and excuse me for my bad English

iMasoud commented 8 years ago

sorry for leaving an spam but it's really urgent!

can any one help me in this please?

mast commented 8 years ago

@iMasoud, did you try solution described here? https://github.com/mast/telegram-bot-api/issues/1

iMasoud commented 8 years ago

wow, great!

thankyou very much for your answer and for your great module! :+1: