Answer the question
In order to leave comments, you need to log in
How to make the bot send a text file?
keyboard = telebot.types.ReplyKeyboardMarkup(True,False)
keyboard.row('Hello')
keyboard.row('What information do you have?')
@bot.message_handler(commands=['start'])
def start_message(message ):
bot.send_message(message.chat.id, 'Hi , you texted me /start ', reply_markup=keyboard)
if message.text.lower() == 'hello':
bot.send_message(message.chat .id, 'Hello user')
elif message.text.lower() == 'what information do you have?':
bot.send_message(message.chat.id, 'Guide.docx')
bot.polling(none_stop = True )
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question