Disable link preview

This commit is contained in:
blank X 2021-02-11 18:26:28 +07:00
parent 8bac49e999
commit 5d27a6d911
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ async def main():
@client.on(events.NewMessage(pattern=f'(?i)/start(?:@{me.username})?(?:\\s|$)', func=lambda e: e.is_private))
async def start(e):
await e.reply('Welcome to blankie contact bot!\n\nSource: https://gitlab.com/blankX/rias')
await e.reply('Welcome to blankie contact bot!\n\nSource: https://gitlab.com/blankX/rias', link_preview=False)
raise events.StopPropagation
@client.on(events.NewMessage(func=lambda e: e.is_private))