This commit is contained in:
bakatrouble 2019-04-01 14:13:43 +03:00
parent ef8a66052d
commit c064d7ab2f

View File

@ -289,7 +289,8 @@ def _process_message(bot: Bot, m: Message):
r = bot.send_venue(uid, l.latitude, l.longitude, v.title, v.address, v.foursquare_id,
reply_to_message_id=reply_to_message_id)
elif hasattr(m, 'text') and m.text:
r = bot.send_message(uid, text, 'html', reply_to_message_id=reply_to_message_id)
r = bot.send_message(uid, text, 'html', reply_to_message_id=reply_to_message_id,
disable_web_page_preview=True)
if r:
user.update_from_message(r)
user.messages_forward[r.message_id] = conn.root.counter