TTF Bot

Layout Studio guide

The same chapters as the guided tour in the editor. Open it with /layout in the bot, or at studio.ttfbot.io.

Layout Studio lets you change how the TTF bot's messages look: scan reports, holders lists and leaderboards, plus the look of charts and PnL / flex cards. This guide follows the same chapters as the guided tour in the editor. To take the tour, press Tutorial at the top of the editor: pick the full tour or one chapter.

1. Basics

What a layout is. A layout is your version of a bot message: which lines it shows, in which order, with which text, and which buttons sit under it. If you have no layout, you get the standard TTF message, exactly as before.

Opening the editor. Send /layout to the TTF bot in a private chat and tap the button. Group admins send /layout in their group to edit the group's layout. Anyone can style their PnL cards with /cardstyle.

Pick what to edit (the "Editing" list). Each kind of message has its own layout and is saved separately:

  • Scan report, one per chain family: Solana, the launchpads (pump.fun, Moonshot, Raydium / Bonk, Boop), EVM chains (ETH, BSC, Base, Arbitrum and the others), TON, Tron, Sui and XRP.
  • Holders: the top holders view (Solana and EVM).
  • Leaderboard: the call leaderboard (/lb), the vote leaderboard and the market-cap leaderboard.
  • Images: the chart style and the PnL / flex card style.

A part you never touch keeps the standard look.

Standard of. Some reports come in versions; for example every EVM chain has its own. This list picks which version the Standard button loads. It only appears where there is a choice.

Start from. Ready-made designs for scan reports. Picking one replaces the lines and buttons in the editor with that design. Nothing is saved until you press Save.

Status. At the top you see a green "No issues" or a red count of problems, and either "Unsaved" (you changed something since the last save) or whose layout this is and its version.

The three parts. Layout lists the lines and buttons, Preview shows the message as Telegram will show it, and Edit opens the line or button you picked, with every value you can insert. On a phone these are three tabs; on a computer or a wide window they sit side by side.

Theme. Light, Dark or Auto. Auto follows Telegram's colours (or your device's outside Telegram). The choice is remembered on that device.

Full screen. On Telegram Desktop and Telegram Web a "Full screen" button fills the whole window; press it again to leave full screen.

2. Lines and templates

Message lines. Each row in the list is one line of the message, top to bottom. Under the line's name you see what it prints for the sample token. A line that comes out empty for a token is simply left out.

Move, hide, remove.

  • Drag the ⋮⋮ grip to move a line, with the mouse or your finger.
  • ↑ / ↓ move it one step.
  • ● hides the line (it turns into ◌; tap again to show it). ✕ removes it.
  • With a keyboard: focus the grip and use the arrow keys, or press Alt+↑ / Alt+↓ anywhere in the row.

Pinned lines. A line with a 🔒 is pinned by TTF, like the sponsor line that keeps the bot free. It stays in its place and nothing can be dragged past it. Readers on the free plan always get the sponsor line, even if you remove it from your layout.

Add lines. + Line adds a new line at the bottom and opens it for editing. + Blank adds an empty line to separate groups; two blank lines in a row count as one.

Practice board. The tour has a practice board: a small throwaway copy where you can drag lines, hide one and edit a template with a live preview. Nothing there is saved or sent.

The line editor. Tap a line, in the list or in the preview, to edit it. Its name is only for you. Its template is the text it prints.

Templates and parameters. A template is normal text plus parameters in curly braces:

You typeIt prints (sample token)
{name}Pepe Rocket
{mc}the market cap, the way TTF normally prints it
`{mc\num}`2.41M
`{mc\usd}`$2.41M
`{holders\int}`8,412
`{top10\pct}`21.37%
`{name\upper}`PEPE ROCKET

Type { in a template to get suggestions as you type. The part after the bar is a format: numbers know usd, num, int, pct, pct1, pct0, signed, x, price and raw; yes/no values know yesno and tick; texts know upper, lower and short. The suggestions show the formats a parameter has.

Show text only when there is a value.

  • {if tax}Tax: {tax}{/if} prints only when the token has a tax.
  • {if tax}Tax: {tax}{else}No tax{/if} prints something else when it has none.
  • {if !tax}No tax{/if} means "when there is none".

Some values do not exist on every chain; the editor marks them n/a and the preview shows "—". Wrap them in {if …} so they never print as "—".

Formatting buttons. B, I and </> make the selected text bold, italic or code. Link adds a link, If… a condition, ↵ a new line inside the same line. The Telegram tags b, i, u, s, code, pre and a work; anything else is refused.

Line options.

  • keep an empty line: prints a blank line even when this line comes out empty.
  • quote block: shows the line as a Telegram quote.
  • Repeat this line (holders lists and leaderboards): the line is printed once for every holder or row; inside it, {row.…} parameters are that row's values, for example {row.rank} or {row.pct}.

All parameters. The Parameters list shows every value you can use. Search, or filter by group, then tap one to insert it where your cursor is. The Labels group, like {t.mc}, prints TTF's word for it in the reader's language, so one layout works in every chat.

Problems. A typo in a parameter, a parameter the chain does not have, or a broken rule is shown under the template and as a red ! in the line list. Lines without problems say "No problems".

3. Live preview

The preview is the message as Telegram will show it, drawn by the same engine the bot uses, with sample data. It updates as you type. Tap a line in it to edit that line.

Length and send check. Under the preview you see the length (Telegram allows 4,096 characters). If the message is too long or could not be sent, it says Standard output would be sent: readers then get the standard report, never a broken one.

Sample token. For scan reports you can switch to another sample token, from another chain, to see how your lines behave when some values are missing. Problems with the whole layout, like a link waiting for review, are listed just below.

4. Buttons

Buttons under the message. Rows of buttons under the report: at most 8 in a row, 20 rows and 100 buttons. + Button adds one, + Row adds an empty row. Drag a button by its ⠿ grip within or between rows, or a whole row by its ⋮⋮ grip.

Editing a button. Tap a button. The label is plain text (parameters allowed). A button either does a Bot action (Chart, Holders, Refresh and so on: the bot does it) or opens a Link. ← → and Row ↑ / Row ↓ move it; Hide and Delete do what they say.

Links and allowed sites. Links start with https:// and go to sites TTF allows, such as DexScreener, GeckoTerminal, DEXTools, Birdeye, the explorers, X and t.me. A link to a new site waits for a TTF admin to approve it; until then your previous layout stays live. If a message would contain a link that is not allowed, the reader gets the standard report instead. Layouts for a group or for everyone can only use sites that are already allowed.

Groups that hide buttons. When a group's admins switch buttons off, that group gets no buttons at all, whatever layout applies. Everywhere else the buttons of the layout that applies are used.

5. Languages

Texts per language. In a line's or button's editor, the Translations section lets you tick the languages your readers use and type the text in each of them. A reader whose chat uses that language gets that text; everyone else gets the default text. Parameters, conditions, tags and links must stay as they are.

Translate. When it is available, Translate fills in the ticked languages for you and Translate all (above the line list) does every line and button at once. Parameters, conditions, tags and links are kept exactly; a result that changes them is dropped and the default text stays. Review, then save. When the button is not there, type the texts yourself.

"default changed since". A translation marked like this was made from an older default text: check it.

Preview language. Under the preview you can show the texts of one language, the way a reader in that language sees it.

6. Chart and card styles

Pick Chart style or PnL / flex card style under Images in the Editing list. They change how the pictures look, not the text.

Chart style. Start from a preset, then fine-tune: colours, candle style, grid, notes, watermark and more. Every change redraws the preview with sample candles. It applies to the charts you open with the bot's Chart buttons.

Card style. One style for both cards: /flex (your PnL) and /gflex (the group's). Switch the preview between them. Pick a preset, then change colours, font, background pattern, and show or hide the logo, chain, % and more. The TTF logo and @TTFBotBot always stay. There are no uploads or image links, only the bundled patterns.

Card styles are free for everyone, in private chats and in groups: send /cardstyle to the bot. A group admin sends /cardstyle in the group to style that group's cards.

7. Who gets it, and publishing

Who gets it ("Apply to").

  • Just me: your own layout.
  • This group: appears when a group admin opens the editor with /layout in the group. Members without a layout of their own get it.
  • Everyone: for TTF admins. Everybody without a layout of their own gets it.

Which one wins. Your own layout beats the group's, the group's beats TTF's layout for everyone, and with none of them you get the standard output. The bar shows which one you get right now. Leaderboards use the layout of the person who asked for them.

Versions and roll back. Every save for a group or for everyone is a new version, and the previous ones are kept. Roll back makes the previous version live again.

Prefer the standard reports? Tick "Standard reports instead of group / TTF layouts" to get the standard reports instead of group or TTF layouts. Your own layout still applies. You can also switch this from the bot: send /layout in a private chat.

Standard. Puts back the standard output (or the standard style) for the part you are editing. Like every change, it counts once you save.

There is no undo button. To drop unsaved changes, close and reopen the editor. To undo a saved change, press Standard and save, or Roll back.

Save. Nothing goes live until you press Save (inside Telegram also the big button at the bottom). For a group or for everyone you confirm first, and the button reads "Save for this group" or "Publish to everyone".

Using it on a computer. Open https://studio.ttfbot.io/layout-studio/ in a normal browser, type your Telegram username, and the bot sends you a 6-digit code in Telegram (valid for 5 minutes). Only people with Layout Studio access get a code, and only if they have started the bot. Tick "Remember this device" to stay signed in for 30 days instead of 12 hours. Devices lists the browsers signed in to your account; sign out any you do not recognise. Sign out ends the current one. Group layouts can only be edited inside Telegram.

Replaying the tour

Press Tutorial at the top of the editor any time: take the full tour or replay one chapter. The tour opens by itself the first time you open the editor on a device; in the same menu you can ask for it again next time. The tour never saves or changes anything.