Nicer .tts behaviour with replies

master
Lonami 2020-05-09 18:15:41 +02:00
parent c9fbc78cda
commit c7d81b26df
1 changed files with 4 additions and 4 deletions

View File

@ -195,11 +195,11 @@ async def _(event):
async def _(event):
await event.delete()
if event.is_reply:
ts = event.raw_text.split(maxsplit=1)
text = None if len(ts) < 2 else ts[1]
if not text and event.is_reply:
text = (await event.get_reply_message()).raw_text
else:
ts = event.raw_text.split(maxsplit=1)
text = None if len(ts) < 2 else ts[1]
if not text:
return