|
|
|
@ -276,7 +276,10 @@ def _process_message(bot: Bot, m: Message):
|
|
|
|
|
m.reply_text('Добро пожаловать (debug)')
|
|
|
|
|
else:
|
|
|
|
|
_notify_access_request(bot, m.from_user)
|
|
|
|
|
return m.reply_text('Пожалуйста, обратитесь к @lono_contactbot')
|
|
|
|
|
return m.reply_text('Пожалуйста, GTFO')
|
|
|
|
|
|
|
|
|
|
if m.text and len(m.text) > 140 or m.caption and len(m.caption) > 140:
|
|
|
|
|
return m.reply_text('Сообщение не может содержать более 140 символов')
|
|
|
|
|
|
|
|
|
|
text = _sign_text(m.text_html, m, MAX_MESSAGE_LENGTH)
|
|
|
|
|
caption = _sign_text(m.caption_html, m, MAX_CAPTION_LENGTH)
|
|
|
|
|