Change reply to accept body argument first

This commit is contained in:
2021-01-10 19:41:56 +01:00
parent 9709971b7c
commit bca6e6c90a
5 changed files with 12 additions and 8 deletions

View File

@ -124,7 +124,7 @@ class Bot(ClientXMPP):
except KeyboardInterrupt:
pass
def reply(self, to=None, room=None, body=None):
def reply(self, body, to=None, room=None):
"""Send back a reply."""
if to is None and room is None:
message = "`to` or `room` arguments required for `reply`"