{"id":28246641,"url":"https://github.com/fullpipe/twa-sdk-types","last_synced_at":"2025-08-28T12:19:22.358Z","repository":{"id":287577900,"uuid":"964632321","full_name":"fullpipe/twa-sdk-types","owner":"fullpipe","description":"TypeScript package that provides type definitions for the Telegram Web Apps SDK","archived":false,"fork":false,"pushed_at":"2025-07-14T19:20:04.000Z","size":239,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-09T17:56:15.244Z","etag":null,"topics":["telegram","telegram-mini-app","twa","types"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fullpipe.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,"zenodo":null}},"created_at":"2025-04-11T14:25:09.000Z","updated_at":"2025-07-14T19:20:34.000Z","dependencies_parsed_at":"2025-04-12T16:29:28.961Z","dependency_job_id":"1ab167ab-f23c-4887-b8ee-7e9bf509b53f","html_url":"https://github.com/fullpipe/twa-sdk-types","commit_stats":null,"previous_names":["fullpipe/telegram-webapps-types"],"tags_count":0,"template":false,"template_full_name":"fullpipe/ts-package-boilerplate","purl":"pkg:github/fullpipe/twa-sdk-types","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullpipe%2Ftwa-sdk-types","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullpipe%2Ftwa-sdk-types/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullpipe%2Ftwa-sdk-types/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullpipe%2Ftwa-sdk-types/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fullpipe","download_url":"https://codeload.github.com/fullpipe/twa-sdk-types/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullpipe%2Ftwa-sdk-types/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272498217,"owners_count":24944819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-28T02:00:10.768Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["telegram","telegram-mini-app","twa","types"],"created_at":"2025-05-19T10:07:41.628Z","updated_at":"2025-08-28T12:19:22.153Z","avatar_url":"https://github.com/fullpipe.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Types for Telegram Web Apps (TWA) SDK\n\n[![Telegram webapps docs](https://img.shields.io/badge/webapps%20docs-blue)](https://core.telegram.org/bots/webapps)\n[![NPM Version](https://img.shields.io/npm/v/twa-sdk-types)](https://www.npmjs.com/package/twa-sdk-types)\n\n`twa-sdk-types` is a TypeScript package that provides type definitions for the Telegram Web Apps SDK.\n\n## Usage\n\nInstall\n\n```sh\nnpm install twa-sdk-types\n```\n\nDeclare in `global.d.ts`\n\n```ts\nimport { Telegram } from 'twa-sdk-types';\n\ndeclare global {\n  interface Window {\n    Telegram: Telegram;\n  }\n}\nwindow.Telegram.WebApp.HapticFeedback.notificationOccurred('success');\n```\n\n## Versioning and Updates\n\nMajor and minor versions of the package will be synchronized with the SDK.\n\nFor example:\n\n- `SDK v9.0` =\u003e `twa-sdk-types@9.0.*`\n\nAll fixes within a specific SDK version (e.g., `v9.0`) will be published as patch updates.\n\n## Update and generate\n\nrebuild types\n\n```sh\ndeno --allow-env --allow-read --allow-net --allow-write scrape/main.ts\nnpx prettier -w src/*\n```\n\nBuild\n\n```sh\nnpm run build\n```\n\nPublish or patch\n\n```sh\nnpm version patch\nnpm publish\n```\n\n## Todo\n\n- [ ] Update and generate with github cron actions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffullpipe%2Ftwa-sdk-types","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffullpipe%2Ftwa-sdk-types","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffullpipe%2Ftwa-sdk-types/lists"}