How to send Message?
For sending message to user by command
bot.replyText(message.chat.id, "Sample Text")
# use this for sending message by command
You can use reply_markup for adding markup in code
we have many Methods in Reply Markup we ad
keyboard = ReplyKeyboardMarkup(True)
keyboard.row("key1","key2")
keyboard.row("key3", "key4")
# Max 12 row can be set
bot.replyText(
chat_id = message.chat.id,
text = "sample ReplyKeyboardMakup",
reply_markup = keyboard
)
markup = InlineKeyboardMarkup()
markup.add(InlineKeyboardButton(
text='test program',
callback_data='callbackrequest')
) #add your inline button with InlineKeyboardButton
bot.replyText(
chat_id = message.chat.id,
text = "sample InlineKeyboardMakup",
reply_markup = markup
)
callback_data
was your next commandLast modified 1yr ago