| Conditions | 1 |
| Total Lines | 15 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | # -*- coding: utf-8 -*- |
||
| 20 | @rate_limit(5, 'eng_symbols') |
||
| 21 | @dp.message_handler(regexp=r'^[a-zA-Z\W]+$') |
||
| 22 | async def bot_message(message: types.Message): |
||
| 23 | |||
| 24 | """ |
||
| 25 | |||
| 26 | The function is designed for processing messages |
||
| 27 | containing english symbols. |
||
| 28 | |||
| 29 | """ |
||
| 30 | |||
| 31 | await types.ChatActions.typing() |
||
| 32 | await asyncio.sleep(1) |
||
| 33 | |||
| 34 | await message.answer("Извините, на данный момент, я не разговариваю на английском языке. 🤐") |
||
| 35 |