Vk bridge: remove UseFileURL
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user