Burn & Claim’s new API is in preview: these pages describe it as it will be at launch.
Burn & Claim Docs

Telegram bot setup

Connect a Telegram group or channel to your org, choose how it hears about cleanups, use the bot's commands, and run your org's own bot.

The bot opens Burn & Claim for your members and keeps your group posted about your org. Members connect their own wallets in the app, review their selections and quote, and approve each request in their wallets.

Available now: connecting a group or channel to one org, cleanup posts with digests for busy chats, donation alerts, scheduled leaderboard posts and burn reminders, /stats and /leaderboard for your org, private wallet alerts (for one wallet, or every wallet on a profile), and an org's own bot.

Connect a group to your org

A group or channel gets posts about one org: the one it's connected to. A chat that isn't connected gets no cleanup or scheduled posts, and the bot answers its commands with how to connect.

  1. In the dashboard, open Settings and, on the Telegram card, choose Connect a group. It makes a one-time code such as BNC-XXXXX-XXXXX, good for 15 minutes.
  2. Choose Add to a group to add the bot to your group with the code, or add the bot yourself and send /connect BNC-XXXXX-XXXXX in the group as one of its admins. In a channel, make the bot an admin allowed to post messages, then post the code there.
  3. The group shows up on the Telegram card, where you choose what it gets.

An org on any plan can connect up to 25 groups and channels. Burn & Claim's own groups connect to our org the same way. Use the bot linked from the Telegram bot page; preview uses its separate development bot. Never send a seed phrase or private key in Telegram.

Admin rights

In a group, the bot needs no admin rights: it posts as a member. If your group hides its member list, Telegram only lets the bot check who its admins are when the bot is an admin itself. The bot tells you so: make it an admin (it needs no permissions), then send the command again. In a channel, the bot must be an admin allowed to post messages.

What a group gets

Each connected group has its own settings on the dashboard's Telegram card: its cleanup posts, donation alerts, leaderboard posts and burn reminders, the forum topic they post in, and Disconnect.

Cleanup posts

A cleanup post names what a wallet burned or closed on your burner and the SOL it got back. It waits for every approval of the cleanup, so a cleanup that takes three approvals posts once. A cleanup that stops partway posts 10 minutes after its last confirmed transaction, and the bot edits that post if more of it confirms later.

Choose how the group hears about cleanups:

SettingWhat the group gets
Each cleanupOne post per cleanup.
Each cleanup, digest when busyOne post per cleanup, until it gets busy: past 5 cleanups in 10 minutes, the next ones roll into one quiet digest. Single posts come back when it calms down. This is the default.
Big cleanups onlyCleanups that get back 0.5 SOL or more, or carry a donation.
Hourly digestOne quiet post an hour.
Daily digestOne quiet post a day, at 14:00 UTC.
OffNo cleanup posts.

A digest is one post with the period's cleanups, accounts closed and SOL reclaimed, what they donated, and the top 3 cleanups. A period with no cleanups posts nothing. Digests post without a sound.

Donation alerts

When a member donates to your org in a cleanup, the donation shows in that cleanup's post. A group on a digest, or with cleanup posts off, gets a donation alert of its own instead, when Donation alerts is on.

Scheduled leaderboards and reminders

With Leaderboard posts on, the group gets your org's leaderboard on a schedule, the same board /leaderboard shows for the range:

PostWhen (UTC)Range
DailyEvery day at 14:0024 hours
WeeklySundays at 15:007 days
MonthlyThe 1st at 13:0030 days
Yearly1 January at 12:0012 months

When nobody is on the board for the range, the group gets a burn reminder instead, with a button to your burner, when Burn reminders is on. Leaderboards and reminders post without a sound. Each group gets at most one of each post per day, week, month or year.

Forum topics

In a forum group, choose the topic each kind of post goes to on the Telegram card, or leave it in General. If the topic is closed or deleted, posts go to General.

Commands

CommandWhat it does
/startIntroduces Burn & Claim.
/helpLists the commands.
/burnOpens your burner.
/howtoOpens the app with guidance for starting a cleanup.
/statsYour org's burns, SOL reclaimed and wallets, for a range.
/leaderboardYour org's top 10 wallets for a range.
/connectConnects the group to an org with a code from the dashboard.

Anyone in the group can use the commands. The bot never signs a transaction for a member.

Stats and leaderboards

/stats and /leaderboard (or legacy's /burnerleaderboard) answer with buttons for a range: 24 hours, 7 days, 30 days, 3 months, 12 months or all time, with the same numbers the API's stats and leaderboards give for your org:

  • Stats: your org's burns, SOL reclaimed, unique wallets and what it raised (donations and fee share).
  • Leaderboard: wallets ranked by what they sent your org. It shows the top 3 and folds the rest of the top 10.

SOL amounts carry their US dollar value when the price is available. Each group may ask every 10 seconds, and press each range every 5.

Wallet alerts in a private chat

The bot tells a person, in their private chat with it, when a wallet of theirs has SOL to reclaim, and on Sundays if they ask. There are two ways to get them:

  • Sign in with Telegram. Someone who signs in to a burner with Telegram and lets the bot message them gets alerts for every wallet on their profile, when a wallet has 0.1 SOL or more to get back. The bot says "Alerts are on for your N wallets" first. A wallet they link later gets alerts too, and one they unlink stops. GET and PUT /v1/profiles/me/alerts read and change these alerts with the person's access token. When Solana lowers rent again, the bot sends one message per profile: "Rent dropped again. 0.0257 SOL is ready in 25 accounts you keep."
  • A wallet-signed link. Anyone can turn on alerts for one wallet in the app's Alerts, approve them in the wallet, and open the private link it gives (/start alerts_…). The bot answers "Linked Solflare D4uJ…Qcvj for alerts." Pass walletApp in POST /v1/alerts/challenge so the bot can name the wallet app; without it, the bot names the wallet by its short address alone.

The bot names a wallet by its wallet app and short address ("Solflare D4uJ…Qcvj"), never its full address. /alerts lists the wallets that alert the chat and what each gets ("When it has 0.1 SOL or more to get back: on", "Sunday reminder: on"). Stop alerts for your profile turns off every wallet on the profile, Stop alerts for D4uJ…Qcvj turns off that wallet, and Change alerts opens the app's Alerts screen to change the amount or the reminder. Each chat gets each alert once. If the person blocks the bot, nothing more is sent there until they open the bot again with /start or sign in with Telegram again.

Your own bot

On Flame and up, an org can run a bot of its own. In the dashboard, open Settings, paste the token BotFather gave your bot and the channel or group it posts in (its @username or numeric chat ID), and connect it. Connecting asks you to sign in again if you haven't in the last 30 minutes.

Add the bot to that chat first. It must be able to post: in a channel, Telegram requires it to be an admin allowed to post messages. It then posts your org's cleanups, donations and leaderboards there, by the same rules. Burn & Claim stores the token sealed and never shows it again. Disconnect the bot from the same card. If Telegram revokes the token, the bot turns off and your org is told. It also stops when your plan no longer includes it.

Never paste a bot token in a group.

If the bot does not reply

Check that you added the official bot for the environment you are using, that it is still a member, and that it can post in the group. Try /help in a private chat with it. If the group isn't connected, the bot answers with how to connect it. To connect a group, use a Telegram account that is one of its admins, and a code made in the last 15 minutes.

For an app or wallet error after /burn, follow the app's message. A group message does not authorize a cleanup: the member still chooses the items and approves in their wallet.

On this page