Fix tag
This commit is contained in:
parent
35e636cc23
commit
c7b58b09cd
|
|
@ -141,8 +141,12 @@ class MirrorListener(listeners.MirrorListeners):
|
||||||
if os.path.isdir(f'{DOWNLOAD_DIR}/{self.uid}/{download_dict[self.uid].name()}'):
|
if os.path.isdir(f'{DOWNLOAD_DIR}/{self.uid}/{download_dict[self.uid].name()}'):
|
||||||
share_url += '/'
|
share_url += '/'
|
||||||
msg += f'\n\n Shareable link: <a href="{share_url}">here</a>'
|
msg += f'\n\n Shareable link: <a href="{share_url}">here</a>'
|
||||||
if self.tag is not None:
|
if self.message.from_user.username:
|
||||||
msg += f'\ncc: @{self.tag}'
|
uname = f"@{self.message.from_user.username}"
|
||||||
|
else:
|
||||||
|
uname = f'<a href="tg://user?id={self.message.from_user.id}">{self.message.from_user.first_name}</a>'
|
||||||
|
if uname is not None:
|
||||||
|
msg += f'\n\ncc : {uname}'
|
||||||
try:
|
try:
|
||||||
fs_utils.clean_download(download_dict[self.uid].path())
|
fs_utils.clean_download(download_dict[self.uid].path())
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue