Service for forwarding messages from VK communities to Telegram chats.
- Create a YAML configuration file.
# Create a bot and get the token with https://t.me/BotFather tg_bot_token: 1234567890:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # Get a VK access token of any type # https://dev.vk.com/en/api/access-token/getting-started vk_api_token: vk1.a.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # List of VK communities communities: - hook_id: my-community # Used in VK callback URL: /api/vk/callback/<hook_id> secret_key: secret # From VK community Callback API settings confirmation_string: abcde123 # From VK community Callback API settings tg_chat_id: 123456789 # Find your ID with https://t.me/userinfobot
- Run the service
go run cmd/app/main.go --config my-config.yml