From 7d47450d6e0c298f3b86881bcf10bfc5f3f66348 Mon Sep 17 00:00:00 2001 From: ivanik Date: Thu, 28 Jan 2021 14:27:11 +0500 Subject: [PATCH] Vk bridge: remove UseFileURL --- bridge/vk/vk.go | 9 ++------- matterbridge.toml.sample | 5 +---- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/bridge/vk/vk.go b/bridge/vk/vk.go index ad6f0eed..89a653cf 100644 --- a/bridge/vk/vk.go +++ b/bridge/vk/vk.go @@ -187,13 +187,8 @@ func (b *Bvk) handleMessage(msg object.MessagesMessage, isFwd bool) { rmsg.Text += "\n" + text } - if b.GetBool("UseFileURL") { - // add url to message text - rmsg.Text += "\n" + strings.Join(urls, "\n") - } else { - // download - b.downloadFiles(&rmsg, urls) - } + // download + b.downloadFiles(&rmsg, urls) } if len(msg.FwdMessages) > 0 { diff --git a/matterbridge.toml.sample b/matterbridge.toml.sample index 92db8aee..6ee6ed58 100644 --- a/matterbridge.toml.sample +++ b/matterbridge.toml.sample @@ -1491,16 +1491,13 @@ SkipTLSVerify=false ################################################################### [vk.myvk] #Group access token -#See https://vk.com/dev/bots_docs?f=1.1.%20%D0%9F%D0%BE%D0%BB%D1%83%D1%87%D0%B5%D0%BD%D0%B8%D0%B5%20%D0%BA%D0%BB%D1%8E%D1%87%D0%B0%20%D0%B4%D0%BE%D1%81%D1%82%D1%83%D0%BF%D0%B0 +#See https://vk.com/dev/bots_docs Token="Yourtokenhere" #Group ID #For example in URL https://vk.com/public168963511 group ID is 168963511 GroupID=123456789 -#If enabled this will relay attachments as URLs -UseFileURL=false - ################################################################### # # WhatsApp