mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-01-24 09:16: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)
|
queued = kwargs.pop('queued', self._is_messages_queued_default)
|
||||||
isgroup = kwargs.pop('isgroup', False)
|
isgroup = kwargs.pop('isgroup', False)
|
||||||
if queued:
|
if queued:
|
||||||
prom = promise.Promise(method, args, kwargs)
|
prom = promise.Promise(method, (self, ) + args, kwargs)
|
||||||
return self._msg_queue(prom, isgroup)
|
return self._msg_queue(prom, isgroup)
|
||||||
return method(self, *args, **kwargs)
|
return method(self, *args, **kwargs)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue