Repository navigation
EN 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.
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
Tokenand a positiveGroupID;Debugis optional. - Optional Discord settings:
GuildID, applicationCommands,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
Webhookscapability flag exists, but there is no public webhook startup path yet. The documented runtime uses polling for Telegram/VK and Gateway for Discord.