Fix little error of chat name
This commit is contained in:
parent
bd737ff820
commit
4a10e4b340
@ -11,5 +11,5 @@ async def dc(_: Client, msg: Message):
|
|||||||
dc_id = msg.reply_to_message.from_user.dc_id \
|
dc_id = msg.reply_to_message.from_user.dc_id \
|
||||||
if _is_replied else msg.chat.dc_id
|
if _is_replied else msg.chat.dc_id
|
||||||
name = msg.reply_to_message.from_user.mention(style="md") \
|
name = msg.reply_to_message.from_user.mention(style="md") \
|
||||||
if _is_replied else f"`{msg.chat.title}`"
|
if _is_replied else f"`{msg.chat.title or msg.chat.first_name}`"
|
||||||
await msg.edit_text(get_dc_text(name, dc_id))
|
await msg.edit_text(get_dc_text(name, dc_id))
|
||||||
|
Loading…
Reference in New Issue
Block a user