Что такое res=False и reply_markup=keyboard?
Иногда замечаю что в ботах для телеграмма на python пишут res=False и reply_markup=keyboard, к примеру:
@bot.message_handler(commands=['start', 'help'])
def send_welcome(message, res=False):
welcome_text = """
Привет! Я умею рассказывать стихи, знаю много интересных фактов и могу показать милых котиков!
"""
keyboard = telebot.types.ReplyKeyboardMarkup(row_width=2, resize_keyboard=True, one_time_keyboard=False)
button1 = telebot.types.KeyboardButton("Факт")
button2 = telebot.types.KeyboardButton("Стихотворение")
button3 = telebot.types.KeyboardButton("Котики")
button4 = telebot.types.KeyboardButton("Стикер")
keyboard.add(button1, button2, button3, button4)
audio = open(r'happy.mp3', 'rb')
bot.send_audio(message.chat.id, audio)
audio.close()
bot.send_message(message.chat.id, welcome_text, reply_markup=keyboard)
Можете объяснить что они делают?
Источник: Stack Overflow на русском