diff options
author | John Smith <mrdoctorwho@helldev.net> | 2018-07-26 20:45:04 +0300 |
---|---|---|
committer | John Smith <mrdoctorwho@helldev.net> | 2018-07-26 20:45:04 +0300 |
commit | a45534d90f2fcf51804d809b6ce3298fcc44a1a8 (patch) | |
tree | 712796cde65ae1b3e83ff95a73fe5d0150c8368e | |
parent | 368915900b27ae9eeac372bdda42184b0a9b5207 (diff) |
Substract one from the message id so probably attachments won't be lost
-rw-r--r-- | library/longpoll.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/longpoll.py b/library/longpoll.py index d75c822..ca007ad 100644 --- a/library/longpoll.py +++ b/library/longpoll.py @@ -111,7 +111,7 @@ def processPollResult(user, data): if not out: if not attachments and not chat: message = [{"out": 0, "uid": uid, "mid": mid, "date": date, "body": body}] - utils.runThread(user.sendMessages, (False, message, mid, uid), "sendMessages-%s" % user.source) + utils.runThread(user.sendMessages, (False, message, mid - 1, uid), "sendMessages-%s" % user.source) else: logger.warning( "longpoll: incorrect events number while trying to " |