Skip to main content
Cove deep links encode the full action inside the Telegram /start payload. They are self-contained, so your app can generate them without storing shared state or calling Cove before the user clicks.
Telegram limits the /start parameter to 64 characters. Cove deep links use fixed-width Base62 segments so payloads stay compact enough for Telegram links.

Quick reference

For token links, encode the token address into Base62 first: 27 chars for EVM tokens, 43 chars for Solana tokens. Use the chain code table below to choose e, b, n, m, s, and other supported networks.

Group buy

Fixed-size buy that can execute immediately for onboarded users.

Group sell

Sells a percentage of the clicker’s own token position.

Referral

Share a token link with referral attribution.
Need attribution? Append both optional IDs as a 14-character tail:
Use 0000000 when one of the two values is intentionally empty.

Group Buy

g_ links execute a buy for a fixed USD amount.

Market Buy Panel

b_ links open the token buy panel so the user can choose the amount.

Group Sell

gs_ links sell a percentage of the clicker’s own token position.

Referral

ref_ links share a token with referral attribution.
Base URL:

Shared encoding

The g_, b_, and gs_ token-action links use the same chain codes, address encoding, and optional affiliate/group tail.

Chain codes

Deep-link codes are not currently published for Arbitrum One, Robinhood Chain, or Stable. Generate payloads only for the chain codes listed above.

Token address width

For EVM addresses, strip 0x and hex-decode the address bytes before Base62 encoding. For Solana addresses, base58-decode the address into 32 bytes before Base62 encoding.

Optional affiliate and group IDs

Token links can optionally include an affiliate Telegram user ID and a source Telegram group ID. The affiliate and group segments are either both present (14 chars total) or both absent. Use 0000000 as the sentinel when only one value is needed. Encode Telegram IDs by converting the numeric ID to Base62 and left-padding it to 7 characters. For Telegram group IDs, remove the -100 prefix before encoding. For example, -1002036764921 becomes 2036764921.
Use g_ links when you want a click to buy a token for a fixed USD amount.
Behavior:
  • Onboarded users execute the buy immediately.
  • New users enter onboarding first. If an affiliate is present, Cove can attach it during onboarding, but the buy does not auto-execute.
  • If affiliate or group metadata is present, Cove records it for attribution and reporting.
Examples:

Use b_ links when you want to open the Cove buy panel for a token and let the user choose the amount.
Behavior:
  • Onboarded users open the market panel in buy mode.
  • The user selects the amount and confirms from inside Cove.
  • New users enter onboarding first. If an affiliate is present, Cove can attach it during onboarding, then the user starts from the main menu.
Examples:

Use gs_ links when you want a click to sell a percentage of the user’s own position in a token. The link does not transfer or sell a shared group wallet position.
Behavior:
  • Cove sells the selected percentage of the clicker’s own position from a real trading account.
  • If the user holds the token in one account, Cove can select that account automatically.
  • If the user holds the token in multiple accounts, Cove shows a wallet picker.
  • If the user does not hold the token, Cove shows that there is nothing to sell.
  • New users can be onboarded through the link, but no sell is executed because there is no existing position.
Group sell links are opt-in for users. The first time a user clicks one while group sells are disabled, Cove asks them to enable group sell links. After enabling, future group sell links can execute directly.
Worst-case Solana payload:
Example:

Use ref_ links when you want to share a token link with referral attribution. The ref value goes before the hyphen, and the token address goes after it. Full link format:
Payload format:
The token address format is the same for EVM and Solana links: replace it with the token address you want the user to open. Example:
In this example, replace alice with your own ref and replace the token address with the token you want to share.

Base62 helpers

Cove uses this alphabet:
All fixed-width Base62 strings are left-padded with 0.
Validate payload length before publishing a link. Invalid optional-tail lengths or payloads above Telegram’s limit will not resolve into a Cove action.