mirror of
https://github.com/miloszowi/everyone-mention-telegram-bot.git
synced 2025-05-20 09:14:07 +00:00
fixed logging twice same action and added group to log message
This commit is contained in:
parent
e0916441b9
commit
cd0712a07b
@ -30,7 +30,6 @@ class StartHandler(AbstractHandler):
|
||||
)
|
||||
|
||||
Replier.html(update, start_text, markup)
|
||||
Logger.action(self.inbound, self.action)
|
||||
|
||||
def is_group_specific(self) -> bool:
|
||||
return False
|
||||
|
@ -58,4 +58,4 @@ class Logger:
|
||||
|
||||
@staticmethod
|
||||
def action(inbound: InboundMessage, action: str) -> None:
|
||||
Logger.info(f'User {inbound.username}({inbound.user_id}) called {action.upper()} for {inbound.chat_id}')
|
||||
Logger.info(f'User {inbound.username}({inbound.user_id}) called {action.upper()} for {inbound.chat_id}({inbound.group_name})')
|
||||
|
Loading…
x
Reference in New Issue
Block a user