inflaton commited on
Commit
5cc0091
·
1 Parent(s): ea50055

limit telegram reply len to 8192 bytes

Browse files
Files changed (1) hide show
  1. telegram_bot.py +1 -1
telegram_bot.py CHANGED
@@ -66,7 +66,7 @@ async def chat_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> No
66
  print(x)
67
  result = x["result"]
68
  print(result)
69
- await update.message.reply_text(result[0:9500])
70
  toc = time.perf_counter()
71
  print(f"Response time in {toc - tic:0.4f} seconds")
72
  except Exception as e:
 
66
  print(x)
67
  result = x["result"]
68
  print(result)
69
+ await update.message.reply_text(result[0:8192])
70
  toc = time.perf_counter()
71
  print(f"Response time in {toc - tic:0.4f} seconds")
72
  except Exception as e: