mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Use safe_api_calls for mm
This commit is contained in:
parent
20e0a86fb7
commit
a1298b57e5
1 changed files with 6 additions and 6 deletions
|
@ -371,7 +371,7 @@ class MmCommand(Command):
|
||||||
self.interface.session.add(mmevent)
|
self.interface.session.add(mmevent)
|
||||||
await asyncify(self.interface.session.commit)
|
await asyncify(self.interface.session.commit)
|
||||||
|
|
||||||
message: telegram.Message = await asyncify(client.send_message,
|
message: telegram.Message = await self.interface.bot.safe_api_call(client.send_message,
|
||||||
chat_id=os.environ["MM_CHANNEL_ID"],
|
chat_id=os.environ["MM_CHANNEL_ID"],
|
||||||
text=telegram_escape(self._main_text(mmevent)),
|
text=telegram_escape(self._main_text(mmevent)),
|
||||||
parse_mode="HTML",
|
parse_mode="HTML",
|
||||||
|
|
Loading…
Reference in a new issue