Skip to content

EN Platform Adapters

Andrewkydev edited this page Aug 26, 2026 · 2 revisions

Platform Adapters

Русский: RU-Platform-Adapters

Capability Telegram VK Discord
Text / callbacks / inline buttons ✅ ✅ ✅
Edit / private / send with ref ✅ ✅ ✅
Attachments ✅ ✅ ✅
Long polling runtime ✅ ✅ —
Slash commands — — ✅
Communities / wall posts — ✅ —
Moderation — partial planned

All three adapters support Send, SendPrivate, SendWithRef, AnswerCallback, Edit, and EditByRef.

Configuration

app.Platform(telegram.New(telegram.Config{Token: os.Getenv("TELEGRAM_TOKEN")}))
app.Platform(vk.New(vk.Config{Token: os.Getenv("VK_TOKEN"), GroupID: groupID}))
app.Platform(discord.New(discord.Config{Token: os.Getenv("DISCORD_TOKEN")}))
  • Optional Telegram settings: ServerURL, ProxyURL, timeouts, Debug, SkipGetMe.
  • VK requires Token and a positive GroupID; Debug is optional.
  • Optional Discord settings: GuildID, application Commands, Intents, DisableTextCommands.

Discord already supports slash commands, subcommands, defer/respond/edit/follow-up flows, ephemeral responses, buttons, embeds, files, and DMs. Timeout/kick/ban, role management, and channel overwrites are not finished yet.

Adapters automatically subscribe only to the event types required by registered routes. The native client is available through typed From(ctx) helpers only after the adapter starts.

For localization, Telegram messages and callbacks expose the sender's language, while Discord commands and component interactions expose the interaction locale. VK events and ordinary Discord messages leave Event.Locale empty, so localization uses a saved choice or the bundle default. See Localization.

The Webhooks capability flag exists, but there is no public webhook startup path yet. The documented runtime uses polling for Telegram/VK and Gateway for Discord.

Clone this wiki locally