Use me instead of sender for .stats
This commit is contained in:
parent
936647fe28
commit
c59060b921
4
ubot.py
4
ubot.py
@ -61,8 +61,8 @@ async def edit(event):
|
|||||||
mentions += dialog.unread_mentions_count
|
mentions += dialog.unread_mentions_count
|
||||||
unread += dialog.unread_count
|
unread += dialog.unread_count
|
||||||
|
|
||||||
sender = await event.get_sender()
|
me = await client.get_me()
|
||||||
name = (sender.first_name)
|
name = (me.first_name)
|
||||||
|
|
||||||
rpl = f'**Stats for {name}**\n'
|
rpl = f'**Stats for {name}**\n'
|
||||||
rpl += f'**Private:** {pms} ({pms - bots} users / {bots} bots)\n'
|
rpl += f'**Private:** {pms} ({pms - bots} users / {bots} bots)\n'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user