Skip to content

Commit

Permalink
chore: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LightDestory committed Dec 22, 2023
1 parent 839dbf0 commit 802be08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/spotted/data/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ async def mute(self, bot: Bot, days: int):
days(optional): The number of days the user should be muted for.
"""
await bot.restrict_chat_member(
chat_id=Config.post_get("channel_id"),
chat_id=Config.post_get("community_group_id"),
user_id=self.user_id,
permissions=ChatPermissions(
can_send_messages=False,
Expand All @@ -147,7 +147,7 @@ async def unmute(self, bot: Bot):
bot : the telegram bot
"""
await bot.restrict_chat_member(
chat_id=Config.post_get("channel_id"),
chat_id=Config.post_get("community_group_id"),
user_id=self.user_id,
permissions=ChatPermissions(
can_send_messages=True,
Expand Down
2 changes: 1 addition & 1 deletion src/spotted/handlers/mute.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async def mute_cmd(update: Update, context: CallbackContext):
await user.mute(info.bot, days)
await info.bot.send_message(
chat_id=Config.post_get("admin_group_id"),
text=f"L'utente è stato mutato per {days} giorn{'o' if days == 1 else 'i'}.",
text=f"L'utente {user.user_id} è stato mutato per {days} giorn{'o' if days == 1 else 'i'}.",
)
await info.bot.send_message(
chat_id=user.user_id, text=f"Sei stato mutato da Spotted DMI" f"per {days} giorn{'o' if days == 1 else 'i'}"
Expand Down

0 comments on commit 802be08

Please sign in to comment.