dev #43

Merged
profitroll merged 49 commits from dev into master 2023-05-02 14:12:58 +03:00
Showing only changes of commit aa8e77811d - Show all commits

View File

@ -63,8 +63,12 @@ async def cmd_message(app: Client, msg: Message):
await msg.reply_text( await msg.reply_text(
locale("message_enter", "message", locale=msg.from_user) locale("message_enter", "message", locale=msg.from_user)
) )
message = await listen_message(app, msg.chat.id, timeout=None) message = await listen_message(app, msg.chat.id)
if message.text is not None and message.text == "/cancel": if (
message is None
or message.text is not None
and message.text == "/cancel"
):
return return
sent = await app.forward_messages( sent = await app.forward_messages(
configGet("admin", "groups"), msg.chat.id, message.id configGet("admin", "groups"), msg.chat.id, message.id