隐藏回复键盘标记在LUA

问题描述:

发送时内嵌的键盘,我需要从以前的聊天中删除重播标记键盘的时候我送新的内置键盘我的代码相同像这样:隐藏回复键盘标记在LUA

if msg.message.contact then 

     local keyboard = {} 
     keyboard.inline_keyboard = { 
     { {text = 'yes',callback_data = 'yes_contact'},{text = 'no',callback_data = 'no_contact'}} 
          } 
     sendmsg(msg.message.from.id,string.format("*your send number * \n` %s `\n confirm", msg.message.contact.phone_number),keyboard) 
end 

我尝试使用keyboard.remove_keyboard = true如此我将代码更改为

local keyboard = {} 
     keyboard.remove_keyboard = true, 
     keyboard.inline_keyboard = { 
     { {text = 'yes',callback_data = 'yes_contact'},{text = 'no',callback_data = 'no_contact'}} 
          } 

但lua给了我错误。什么是问题?

据类型的reply_markupsendMessage,好像它只能包含InlineKeyboardMarkupReplyKeyboardRemove :(

已经有一种变通方法,您可以发送了一封邮件与ReplyKeyboardRemove,并使用editMessageReplyMarkup添加您在线键盘。

+0

如何从机器人使用editMessageReplyMarkup得到发送的message_id? –

+0

@sadrakeshtar .result.message_id https://i.stack.imgur.com/G7lRI.jpg – Sean