get self name
This commit is contained in:
parent
2cbcecf35c
commit
c3b189c57b
2
main.py
2
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)
|
||||
|
Loading…
Reference in New Issue
Block a user