A
Size: a a a
A
Н
@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 = str(downloaded_file, 'ascii')
print(texts)
t = ''
a = 1
for i in texts.split('\n'):
t += i.replace(f'{a}) ', '')
a += 1
bot.reply_to(message, t)
bot.polling(none_stop=True)
Н
A
@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 += i.replace(f'{a}) ', '')
a += 1
bot.reply_to(message, t)
bot.polling(none_stop=True)
T
A
@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 += i.replace(f'{a}) ', '')
a += 1
bot.reply_to(message, t)
bot.polling(none_stop=True)
A
Н
Н
Н
T
A
A
T
A
T
A
A
T
A