fix
This commit is contained in:
parent
ef8a66052d
commit
c064d7ab2f
3
main.py
3
main.py
@ -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,
|
r = bot.send_venue(uid, l.latitude, l.longitude, v.title, v.address, v.foursquare_id,
|
||||||
reply_to_message_id=reply_to_message_id)
|
reply_to_message_id=reply_to_message_id)
|
||||||
elif hasattr(m, 'text') and m.text:
|
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:
|
if r:
|
||||||
user.update_from_message(r)
|
user.update_from_message(r)
|
||||||
user.messages_forward[r.message_id] = conn.root.counter
|
user.messages_forward[r.message_id] = conn.root.counter
|
||||||
|
Loading…
Reference in New Issue
Block a user