get self name

This commit is contained in:
Administrator 2023-09-30 09:33:19 +03:00
parent 2cbcecf35c
commit c3b189c57b

View File

@ -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)