в котором мне будет возвращено сообщение об ошибке.
мой код:
Код: Выделить всё
path = 'C:\\Bot\\Log\\aaa\\*.log'
files = glob.glob(path)
nlines= 0
data = "Servers : \n"
for name in files:
with open(name) as f:
for line in f :
nlines += 1
if (line.find("Total") >= 0):
data += line
for i in range(5):
data += next(f)
data += f'\n{emoji.emojize(":blue_heart:")} ----------------------------------------------------{emoji.emojize(":blue_heart:")}\n'
if (line.find("Source") >= 0):
data += line
query.edit_message_text(
text=f"{data}",
reply_markup=build_keyboard(number_list),
)
Код: Выделить всё
telegram.error.BadRequest: Message_too_long
Подробнее здесь: https://stackoverflow.com/questions/708 ... bot-python