Skip to content

Commit

Permalink
Убран предпросмотр ссылко при отправке сообщений в телеграм
Browse files Browse the repository at this point in the history
  • Loading branch information
Delitel-WEB committed Sep 22, 2023
1 parent 87d42ab commit a5c5742
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions sync/vk/handlers/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ async def on_message(message: Message):
+ "‾" * 10
+ f"\n{message.text}",
parse_mode="html",
disable_web_page_preview=True,
)
1 change: 1 addition & 0 deletions sync/vk/handlers/stickers.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ async def on_stickers(message: Message):
await sticker_message.reply(
f"<a href='{create_vk_link(message.from_id)}'>{user_info[0].first_name} {user_info[0].last_name}</a>\n",
parse_mode="html",
disable_web_page_preview=True,
)
1 change: 1 addition & 0 deletions sync/vk/handlers/voices.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ async def on_audio_message(message: Message):
voice_file,
f"<a href='{create_vk_link(message.from_id)}'>{user_info[0].first_name} {user_info[0].last_name}</a>\n",
parse_mode="html",
disable_notification=True,
)

0 comments on commit a5c5742

Please sign in to comment.