komrade update!

posting-take2
quadrismegistus 4 years ago
parent c518e44c2a
commit 528fb40f1a

@ -368,7 +368,7 @@ class KomradeX(Caller):
succ=res.get('success') succ=res.get('success')
if succ: if succ:
msgd=res.get('msg_d',{}) msgd=res.get('msg_d',{})
msg=msgd.get('msg') msg=msgd.get('msg',{}).get('txt','[?]')
toname=msgd.get('to_name') toname=msgd.get('to_name')
status = f"""I sent the following message to {toname}:\n\n"{msg}" """ status = f"""I sent the following message to {toname}:\n\n"{msg}" """
else: else:

@ -834,7 +834,9 @@ class TheOperator(Operator):
'msg':{ 'msg':{
'txt':txt, 'txt':txt,
'type':'prompt', 'type':'prompt',
'prompt_id':'addcontact' 'prompt_id':'addcontact',
'meet_name':meet_from_name,
'meet_uri':meet_from_uri
} }
} }

Loading…
Cancel
Save