42wim / matterbridge

bridge between mattermost, IRC, gitter, xmpp, slack, discord, telegram, rocketchat, twitch, ssh-chat, zulip, whatsapp, keybase, matrix, microsoft teams, nextcloud, mumble, vk and more with REST API (mattermost not required!)
Apache License 2.0
6.47k stars 609 forks source link

VK One way messages #1756

Closed Dimoon12 closed 2 years ago

Dimoon12 commented 2 years ago

Describe the bug One way messages. (TG-->VK) (VK X TG)

To Reproduce Create group in VK, create API key, Enable long poll api , enable Event type incoming message, add bot to group, and launch matterbridge

Expected behavior Must work 2 ways

Screenshots/debug logs Launch log:

****/talk_matterbridge# bin/matterbridge-1.23.2-linux-64bit -conf matterbridge.toml --debug
[0000]  INFO main:         [setupLogger:matterbridge.go:104] Enabling debug logging.
[0000]  INFO main:         [main:matterbridge.go:44] Running version 1.23.2 73ec02ab
[0000]  INFO router:       [Start:gateway/router.go:66] Parsing gateway mygateway
[0000]  INFO router:       [Start:gateway/router.go:75] Starting bridge: vk.myvk 
[0000]  INFO vk:           [Connect:bridge/vk/vk.go:46] Connecting
[0000]  INFO vk:           [Connect:bridge/vk/vk.go:59] Connection succeeded
[0000]  INFO vk:           [joinChannels:bridge/bridge.go:77] vk.myvk: joining 2000000001 (ID: 2000000001vk.myvk)
[0000]  INFO router:       [Start:gateway/router.go:75] Starting bridge: nctalk.cloud 
[0000]  INFO nctalk:       [Connect:bridge/nctalk/nctalk.go:34] Connecting
[0001]  INFO nctalk:       [Connect:bridge/nctalk/nctalk.go:51] Connected
[0001]  INFO nctalk:       [joinChannels:bridge/bridge.go:77] nctalk.cloud: joining ***t9oiu (ID: *****talk.cloud)
[0003]  INFO router:       [Start:gateway/router.go:75] Starting bridge: telegram.mytelegram 
[0003]  INFO telegram:     [Connect:bridge/telegram/telegram.go:44] Connecting
[0003]  INFO telegram:     [Connect:bridge/telegram/telegram.go:57] Connection succeeded
[0003]  INFO telegram:     [joinChannels:bridge/bridge.go:77] telegram.mytelegram: joining -10017235***** (ID: -1001723*****telegram.mytelegram)
[0003]  INFO main:         [main:matterbridge.go:68] Gateway(s) started succesfully. Now relaying messages

config:

[vk.myvk]
Token="2903bf2533117ab33a667c9511******3b312728d2c12b6e39fb1e*********5569312de345f6a******"
GroupID=21*******
RemoteNickFormat="[{PROTOCOL}] [{NICK}] "

[nctalk.cloud]
# The location of your Nextcloud instance with Talk installed
Server="https://***"
Login="***"
Password="***"
RemoteNickFormat="[{PROTOCOL}] [{NICK}] "

[telegram.mytelegram]
#See https://core.telegram.org/bots#6-botfather 
#and https://www.linkedin.com/pulse/telegram-bots-beginners-marco-frau
Token="*********************************"
RemoteNickFormat="]{PROTOCOL}] [{NICK}] "

[[gateway]]
name="mygateway"
enable=true
    [[gateway.inout]]
    account="vk.myvk"
    channel="2000000001"

    [[gateway.inout]]
    account="nctalk.cloud"
    channel="*********"

    [[gateway.inout]]
    account="telegram.mytelegram"
    channel="-100*********"

Environment (please complete the following information):

Additional context After launch Long Poll API chainging to 5.126 (Why? I did not do it)

Dimoon12 commented 2 years ago

Work with document in message or @all (Cant test now what actually)

Dimoon12 commented 2 years ago

ok It work only with mention (@)

42wim commented 2 years ago

Please update to latest matterbridge and reopen if still an issue

Dimoon12 commented 2 years ago

Please update to latest matterbridge and reopen if still an issue

Fixed! We need to update the wiki. In the community you need to enable access to correspondence. my friend helped me with this because i deleted my account, I can not write exactly how to do it, but here is the information: https://dev.vk.com/api/bots/getting-started