move text to front
This commit is contained in:
parent
581e491cd8
commit
b4b05f5548
1 changed files with 5 additions and 0 deletions
|
|
@ -270,6 +270,11 @@ class SessionHandler(dict):
|
||||||
else:
|
else:
|
||||||
rkwargs[key] = [[_validate(data)], {}]
|
rkwargs[key] = [[_validate(data)], {}]
|
||||||
rkwargs[key][1]["options"] = dict(options)
|
rkwargs[key][1]["options"] = dict(options)
|
||||||
|
# make sure that any "text" message will be processed first
|
||||||
|
# by putting it at the beginning
|
||||||
|
if "text" in rkwargs:
|
||||||
|
text = rkwargs.pop("text")
|
||||||
|
rkwargs = { "text": text } | rkwargs
|
||||||
return rkwargs
|
return rkwargs
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue