Files
react-telegram/packages/core
dependabot[bot] 8ec420b734 chore(deps): bump the dependencies group across 1 directory with 3 updates
Bumps the dependencies group with 3 updates in the / directory: [react-reconciler](https://github.com/facebook/react/tree/HEAD/packages/react-reconciler), [@mtcute/bun](https://github.com/mtcute/mtcute) and [@mtcute/dispatcher](https://github.com/mtcute/mtcute).


Updates `react-reconciler` from 0.32.0 to 0.33.0
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/HEAD/packages/react-reconciler)

Updates `@mtcute/bun` from 0.24.3 to 0.26.1
- [Release notes](https://github.com/mtcute/mtcute/releases)
- [Commits](https://github.com/mtcute/mtcute/compare/v0.24.3...v0.26.1)

Updates `@mtcute/dispatcher` from 0.24.3 to 0.26.1
- [Release notes](https://github.com/mtcute/mtcute/releases)
- [Commits](https://github.com/mtcute/mtcute/compare/v0.24.3...v0.26.1)

---
updated-dependencies:
- dependency-name: react-reconciler
  dependency-version: 0.33.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: "@mtcute/bun"
  dependency-version: 0.26.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: "@mtcute/dispatcher"
  dependency-version: 0.26.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-06 00:38:31 +00:00
..

@react-telegram/core

Core React reconciler for building Telegram bots with React components.

Installation

bun add @react-telegram/core react

Usage

import { createContainer } from '@react-telegram/core';

const { render, container } = createContainer();

const App = () => (
  <>
    <b>Hello Telegram!</b>
    <br />
    <i>Built with React</i>
  </>
);

render(<App />);
console.log(container.root);

Supported Elements

Text Formatting

  • <b>, <strong> - Bold text
  • <i>, <em> - Italic text
  • <u>, <ins> - Underlined text
  • <s>, <strike>, <del> - Strikethrough text
  • <code> - Inline code
  • <pre> - Code blocks
  • <br /> - Line breaks

Telegram-specific

  • <tg-spoiler> - Spoiler text
  • <tg-emoji> - Custom emoji
  • <blockquote> - Quotes (with optional expandable prop)
  • <a> - Links

Interactive Elements

  • <button> - Inline keyboard buttons
  • <row> - Button row container
  • <input> - Text input handler

TypeScript Support

This package includes full TypeScript definitions. The JSX elements are automatically typed when you import the package.

License

MIT