Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

4.0 KB
Raw Blame
---
title: Telegram Chat Flow
description: Telegram-styled conversation with tailed bubbles, delivery checks, typing status, and reaction chips
component: telegram-chat-flow
vibe: social
length: 360
useWhen:
  - "The scene must read as Telegram — blue tailed bubbles, in-bubble timestamps, and double-check delivery marks."
  - "You want the reply beat announced as an italic \"typing…\" status in the header rather than a bubble of dots."
  - "The demo needs the Telegram composer pill, where the mic button swaps to a paper plane the moment text is typed."
avoidWhen:
  - "The scene must read as iMessage — use `imessage-chat-flow` for gray incoming bubbles, the Delivered label, and tapback badges."
  - "The conversation has to follow your brand tokens — use `chat-flow`; this block's chrome is a fixed light Telegram skin and only `accentColor` is overridable."
  - "You only need a single bubble or the dots on their own — use `message-bubble` or `typing-indicator`."
askedAs:
  - "Telegram conversation"
  - "Telegram chat bubbles with checks"
  - "I want a Telegram style chat with tailed bubbles and double check marks"
  - "bot or channel demo in a Telegram look"
  - "show a messenger thread with delivery ticks and reaction chips"
  - "chat scene for a crypto or bot product that lives on Telegram"
---

<BlockPreview name="telegram-chat-flow" />

A Telegram-skinned composition scene — a tailed-bubble message thread, a Telegram-style composer pill, and a contact header that flips to "typing…" while the other side replies. Outgoing messages type into the composer then send with blue double-check delivery marks; incoming replies are preceded by a "typing…" status in the header before the bubble arrives; reaction chips pop in after each message lands.

<InstallBlock name="telegram-chat-flow" />

<Note>
Installing `telegram-chat-flow` automatically installs the shared `remocn-ui` core and all composed primitives via `registryDependencies`: `caret`. You do not need to install them separately.
</Note>

## Composed primitives

- **Caret** — blinking caret inside the Telegram composer pill; outgoing text reveals character by character before sending

The block is otherwise self-contained: it owns its tailed bubble layout, in-bubble timestamps, delivery-check marks, reaction chips, the composer pill (emoji + text field + attach icon + blue circular send button), and the contact header with avatar and typing-status logic.

## Timeline narrative

The scene opens with a focused Telegram composer. The first outgoing message types into the input pill, then sends — a blue tailed bubble enters from below and settles into the thread, its timestamp and double-check marks visible inside the bubble. The contact header switches to "typing…"; after a beat the reply bubble arrives (white, left-tailed) and a reaction chip pops in beneath it. The second outgoing message follows the same pattern, sending with delivery checks and its own reaction. The composer returns to idle.

<PropsTable title="Props"
  rows={[
    {
      name: "messages",
      type: "TelegramMessage[]",
      description: "Array of messages to animate. Each item has {from: 'me' | 'them', text: string, reaction?: string, time?: string}. Defaults to the built-in demo script.",
    },
    {
      name: "contact",
      type: "{ name: string; avatar?: string }",
      description: "Display name and optional avatar URL shown in the contact header.",
    },
    {
      name: "accentColor",
      type: "string",
      description: "Override for the outgoing bubble color and send button. Defaults to Telegram blue. Accepts any concrete color value (oklch, hex, rgb).",
    },
    {
      name: "speed",
      type: "number",
      default: "1",
      description: "Multiplier on the overall animation speed. Values above 1 speed up the whole conversation; below 1 slow it down.",
    },
    {
      name: "theme",
      type: "RemocnTheme",
      description: "Optional theme override (concrete oklch/hex/rgb values).",
    },
  ]}
/>