mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-01 10:34:51 +00:00
Small fix
Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
This commit is contained in:
parent
64c6e3a1a0
commit
4c5c5bca95
1 changed files with 1 additions and 1 deletions
2
utils.py
2
utils.py
|
|
@ -128,7 +128,7 @@ def extract_user(message: Message) -> Union[int, str]:
|
|||
user_first_name = message.reply_to_message.from_user.first_name
|
||||
|
||||
elif len(message.command) > 1:
|
||||
if len(message.entities) > 1 and message.entities[1].type == "text_mention":
|
||||
if len(message.entities) > 1 and message.entities[1].type.value == "text_mention":
|
||||
required_entity = message.entities[1]
|
||||
user_id = required_entity.user.id
|
||||
user_first_name = required_entity.user.first_name
|
||||
|
|
|
|||
Loading…
Reference in a new issue