Skip to content

Commit

Permalink
fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Feb 24, 2024
1 parent 47c1a8a commit 55462cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions matterdelta/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def _log_event(bot: Bot, accid: int, event: AttrDict) -> None:
if event.progress == 1000:
bot.logger.debug("QR scanned by contact id=%s", event.contact_id)
chatid = bot.rpc.create_chat_by_contact_id(accid, event.contact_id)
send_help(bot, accid, chatid)
_send_help(bot, accid, chatid)


@cli.on(events.NewMessage(is_info=False, is_bot=None, func=is_not_known_command))
Expand All @@ -54,7 +54,7 @@ def _bridge(bot: Bot, accid: int, event: AttrDict) -> None:
chat = bot.rpc.get_basic_chat_info(accid, msg.chat_id)
if chat.chat_type == ChatType.SINGLE and not msg.is_bot:
bot.rpc.markseen_msgs(accid, [msg.id])
send_help(bot, accid, msg.chat_id)
_send_help(bot, accid, msg.chat_id)
else:
dc2mb(bot, accid, msg)

Expand All @@ -72,7 +72,7 @@ def _id(bot: Bot, accid: int, event: AttrDict) -> None:
bot.rpc.send_msg(accid, msg.chat_id, reply)


def send_help(bot: Bot, accid: int, chatid: int) -> None:
def _send_help(bot: Bot, accid: int, chatid: int) -> None:
text = (
"**Available commands**\n\n"
"/id - send me this command in a group to get its ID."
Expand Down

0 comments on commit 55462cd

Please sign in to comment.