remove twitter mode

master
bakatrouble 3 years ago
parent cf62821e23
commit b0f3323a02

@ -103,7 +103,7 @@ def add_user(update: Update, ctx: CallbackContext):
update.callback_query.message.edit_reply_markup()
ctx.bot.send_message(MANAGEMENT_CHAT, f'<a href="tg://user?id={uid}">{escape(user.name)}</a> ({uid}) был добавлен',
parse_mode='html')
ctx.bot.send_message(uid, 'Добро пожаловать. Снова.')
# ctx.bot.send_message(uid, 'Добро пожаловать. Снова.')
except TelegramError as e:
ctx.bot.send_message(MANAGEMENT_CHAT, str(e))
@ -278,8 +278,8 @@ def _process_message(bot: Bot, m: Message):
_notify_access_request(bot, m.from_user)
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 символов')
# 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)

Loading…
Cancel
Save