mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Let's try deleting before sending messages
This commit is contained in:
parent
b1a2900b62
commit
7221f5f730
1 changed files with 4 additions and 5 deletions
|
@ -331,6 +331,10 @@ class MatchmakingCommand(rc.Command):
|
|||
bot.unregister_keyboard_key(f"mm{mmevent.mmid}_DELETE")
|
||||
bot.unregister_keyboard_key(f"mm{mmevent.mmid}_START")
|
||||
|
||||
await self.interface.serf.api_call(client.delete_message,
|
||||
chat_id=mmevent.interface_data.chat_id,
|
||||
message_id=mmevent.interface_data.message_id)
|
||||
|
||||
if interrupt == Interrupts.TIME_RAN_OUT or interrupt == Interrupts.MANUAL_START:
|
||||
await asyncify(client.send_message,
|
||||
chat_id=self.config["Telegram"]["main_group_id"],
|
||||
|
@ -364,11 +368,6 @@ class MatchmakingCommand(rc.Command):
|
|||
parse_mode="HTML",
|
||||
disable_webpage_preview=True
|
||||
)
|
||||
|
||||
await self.interface.serf.api_call(client.delete_message,
|
||||
chat_id=mmevent.interface_data.chat_id,
|
||||
message_id=mmevent.interface_data.message_id)
|
||||
|
||||
else:
|
||||
raise rc.UnsupportedError()
|
||||
# The end!
|
||||
|
|
Loading…
Reference in a new issue