rizaumami / tdbot.lua

Lua wrapper for telegram-bot
GNU General Public License v3.0
24 stars 21 forks source link

How to use replay_markup #11

Open puryanms opened 6 years ago

puryanms commented 6 years ago

hi,

how can i use replay_markup in bot ?

its not working :

assert (tdbot_function ({
  _ = "sendMessage",
  chat_id = math.ceil(msg.chat_id),
  reply_to_message_id = 0,
  disable_notification=false,
  from_background=true,
  reply_markup={
      _ = "replyMarkupShowKeyboard",
      resize_keyboard = true,
      rows ={
        {
          [0] = {
            _ = "keyboardButton",
            text = "bottom1",
            type = {
              _ = "keyboardButtonTypeText"
            }
          }
        },
        {
          [0] = {
            _ = "keyboardButton",
            text = "bottom2",
            type = {
              _ = "keyboardButtonTypeText"
            }
          }
        },
      },
 },
  input_message_content={
    _="inputMessageText",
    text= "itsok",
    disable_web_page_preview=true,
    clear_draft=false,
    entities={},
    parse_mode=MarkDown}
  }, dl_cb, nil))

ty

rizaumami commented 6 years ago

Can't help you. I've never really use bot (API) methods.