mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-22 14:35:00 +01:00
Fixed args dispatching in messagequeue decorator (#705)
This commit is contained in:
parent
94ed4cb38d
commit
f72f4090c6
1 changed files with 1 additions and 1 deletions
|
@ -323,7 +323,7 @@ def queuedmessage(method):
|
|||
queued = kwargs.pop('queued', self._is_messages_queued_default)
|
||||
isgroup = kwargs.pop('isgroup', False)
|
||||
if queued:
|
||||
prom = promise.Promise(method, args, kwargs)
|
||||
prom = promise.Promise(method, (self, ) + args, kwargs)
|
||||
return self._msg_queue(prom, isgroup)
|
||||
return method(self, *args, **kwargs)
|
||||
|
||||
|
|
Loading…
Reference in a new issue