{"id":26655622,"url":"https://github.com/gramiojs/callback-data","last_synced_at":"2025-09-03T12:36:57.488Z","repository":{"id":229450505,"uuid":"776768174","full_name":"gramiojs/callback-data","owner":"gramiojs","description":"Library for easily manage callback-data","archived":false,"fork":false,"pushed_at":"2025-03-17T14:53:17.000Z","size":67,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-25T06:36:35.032Z","etag":null,"topics":["callback-data","gramio","telegram","telegram-bot","telegram-bot-api"],"latest_commit_sha":null,"homepage":"https://gramio.dev/","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/gramiojs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-03-24T12:45:47.000Z","updated_at":"2025-03-17T14:50:41.000Z","dependencies_parsed_at":"2025-03-17T21:46:37.152Z","dependency_job_id":null,"html_url":"https://github.com/gramiojs/callback-data","commit_stats":null,"previous_names":["gramiojs/callback-data"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gramiojs%2Fcallback-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gramiojs%2Fcallback-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gramiojs%2Fcallback-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gramiojs%2Fcallback-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gramiojs","download_url":"https://codeload.github.com/gramiojs/callback-data/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248368742,"owners_count":21092445,"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","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":["callback-data","gramio","telegram","telegram-bot","telegram-bot-api"],"created_at":"2025-03-25T06:36:42.817Z","updated_at":"2025-04-11T09:37:56.912Z","avatar_url":"https://github.com/gramiojs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @gramio/callback-data\n\nLibrary for easily manage callback-data.\n\n[![npm](https://img.shields.io/npm/v/@gramio/callback-data?logo=npm\u0026style=flat\u0026labelColor=000\u0026color=3b82f6)](https://www.npmjs.org/package/@gramio/callback-data)\n[![JSR](https://jsr.io/badges/@gramio/callback-data)](https://jsr.io/@gramio/callback-data)\n[![JSR Score](https://jsr.io/badges/@gramio/callback-data/score)](https://jsr.io/@gramio/callback-data)\n\n## Usage with [GramIO](https://gramio.dev/)\n\n```typescript\nconst someData = new CallbackData(\"example\").number(\"id\");\n\nnew Bot()\n    .command(\"start\", (context) =\u003e\n        context.send(\"some\", {\n            reply_markup: new InlineKeyboard().text(\n                \"example\",\n                someData.pack({\n                    id: 1,\n                })\n            ),\n        })\n    )\n    .callbackQuery(someData, (context) =\u003e {\n        context.queryData; // is type-safe\n    });\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgramiojs%2Fcallback-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgramiojs%2Fcallback-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgramiojs%2Fcallback-data/lists"}