mirror of
https://github.com/lockin-bot/react-telegram.git
synced 2026-04-30 10:22:15 +08:00
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>
@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 optionalexpandableprop)<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