FreshPixels commited on
Commit
943a612
·
verified ·
1 Parent(s): e33c700

Delete utils

Browse files
Files changed (2) hide show
  1. utils/ __init__.py +0 -0
  2. utils/helpers.py +0 -17
utils/ __init__.py DELETED
File without changes
utils/helpers.py DELETED
@@ -1,17 +0,0 @@
1
- import logging
2
- from aiogram import types
3
- from config import config
4
-
5
- logger = logging.getLogger(__name__)
6
- MAX_LENGTH = config.MAX_MESSAGE_LENGTH
7
-
8
-
9
- async def send_long_message(message: types.Message, text: str) -> None:
10
- """Split long messages into chunks of MAX_LENGTH characters."""
11
- if len(text) <= MAX_LENGTH:
12
- await message.answer(text)
13
- return
14
-
15
- for i in range(0, len(text), MAX_LENGTH):
16
- chunk = text[i:i + MAX_LENGTH]
17
- await message.answer(chunk)