@bot.message_handler(content_types=['document'])
def sms(message):
file_info = bot.get_file(message.document.file_id)
downloaded_file = bot.download_file(file_info.file_path)
texts = bytes.decode(downloaded_file, encoding='utf-8')
print(texts)
t = ''
a = 1
for i in texts.split('\n'):
t += f"{а}) {i}\n"
a += 1
bot.reply_to(message, t)