diff --git a/main.py b/main.py index 278f7fe..b877cea 100644 --- a/main.py +++ b/main.py @@ -152,7 +152,7 @@ def show_rating(message: Message): @bot.message_handler() def do_action(message: Message): if message.reply_to_message: - if message.reply_to_message.from_user.username == 'localdevelopmentsprintbot': + if message.reply_to_message.from_user.username == get_self_name(): bot.reply_to(message, choice(get_replies())) return info = get_chat_info(message.chat.id)