Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f72f409

Browse files
author
thodnev
authored
Fixed args dispatching in messagequeue decorator (python-telegram-bot#705)
1 parent 94ed4cb commit f72f409

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

telegram/ext/messagequeue.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ def wrapped(self, *args, **kwargs):
323323
queued = kwargs.pop('queued', self._is_messages_queued_default)
324324
isgroup = kwargs.pop('isgroup', False)
325325
if queued:
326-
prom = promise.Promise(method, args, kwargs)
326+
prom = promise.Promise(method, (self, ) + args, kwargs)
327327
return self._msg_queue(prom, isgroup)
328328
return method(self, *args, **kwargs)
329329

0 commit comments

Comments
 (0)