{"id":20514429,"url":"https://github.com/alexxandergrib/telegram-jsx","last_synced_at":"2026-02-14T21:03:05.316Z","repository":{"id":205245545,"uuid":"713777841","full_name":"AlexXanderGrib/telegram-jsx","owner":"AlexXanderGrib","description":"TSX/JSX runtime for telegram bots","archived":false,"fork":false,"pushed_at":"2024-10-15T15:48:47.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-17T00:03:27.176Z","etag":null,"topics":["bot","components","formatting","jsx","telegram","tsx"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/telegram-jsx","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlexXanderGrib.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-03T08:08:04.000Z","updated_at":"2025-03-28T22:23:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"a4758ca3-ccdc-49ac-9bf8-c026b5cd1055","html_url":"https://github.com/AlexXanderGrib/telegram-jsx","commit_stats":null,"previous_names":["alexxandergrib/telegram-jsx","tdlib-native/telegram-jsx"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AlexXanderGrib/telegram-jsx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexXanderGrib%2Ftelegram-jsx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexXanderGrib%2Ftelegram-jsx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexXanderGrib%2Ftelegram-jsx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexXanderGrib%2Ftelegram-jsx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexXanderGrib","download_url":"https://codeload.github.com/AlexXanderGrib/telegram-jsx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexXanderGrib%2Ftelegram-jsx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29455601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T15:52:44.973Z","status":"ssl_error","status_checked_at":"2026-02-14T15:52:11.208Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","components","formatting","jsx","telegram","tsx"],"created_at":"2024-11-15T21:16:22.440Z","updated_at":"2026-02-14T21:03:05.069Z","avatar_url":"https://github.com/AlexXanderGrib.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telegram JSX\n\nTSX/JSX runtime for telegram bots\n\n## Installation\n\n1. Run:\n   ```bash\n   npm install telegram-jsx\n   ```\n2. Set these properties in `tsconfig.json`\n   ```json\n   {\n     \"jsx\": \"react-jsx\",\n     \"jsxImportSource\": \"telegram-jsx\",\n     \"include\": [\"node_modules/telegram-jsx/index.d.ts\"]\n   }\n   ```\n\n## Usage\n\nNow you can create components and use TSX\n\n```tsx\nimport { Paragraph } from \"telegram-jsx\";\n\nexport function Ul({ children }: { children: Iterable\u003cJSX.Child\u003e }) {\n  return (\n    \u003c\u003e\n      {[...children].filter(Boolean).map((value) =\u003e (\n        \u003cParagraph\u003e\n          \u003ci\u003e•\u003c/i\u003e {value}\n        \u003c/Paragraph\u003e\n      ))}\n    \u003c/\u003e\n  );\n}\n```\n\n```tsx\ntelegram.updates.on(\"message\", (context) =\u003e\n  context.reply((\u003cb\u003eyoo!\u003c/b\u003e).toString())\n);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexxandergrib%2Ftelegram-jsx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexxandergrib%2Ftelegram-jsx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexxandergrib%2Ftelegram-jsx/lists"}