How to send Message?

For sending message to user by command

Sample code for sending message

bot.replyText(message.chat.id, "Sample Text")
# use this for sending message by command

Add Reply Markup

You can use reply_markup for adding markup in code

Some Methods For reply_markup

we have many Methods in Reply Markup we ad

Sample for ReplyKeyboardMarkup

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
)

Sample For InlineKeyboardMarkup

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 command