{"id":19112897,"url":"https://github.com/chipslays/litegram","last_synced_at":"2026-03-08T16:33:34.074Z","repository":{"id":62501861,"uuid":"342221852","full_name":"chipslays/litegram","owner":"chipslays","description":"🍃 Simple, flexible library based on events for Telegram Bot Api.","archived":false,"fork":false,"pushed_at":"2023-08-08T05:46:43.000Z","size":1289,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"v3.x.x","last_synced_at":"2025-06-03T11:16:14.225Z","etag":null,"topics":["api","api-wrapper","bot","bot-api","library","telegram","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/chipslays.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":"2021-02-25T11:27:20.000Z","updated_at":"2022-05-08T15:25:13.000Z","dependencies_parsed_at":"2024-11-09T04:34:32.313Z","dependency_job_id":null,"html_url":"https://github.com/chipslays/litegram","commit_stats":null,"previous_names":[],"tags_count":47,"template":false,"template_full_name":null,"purl":"pkg:github/chipslays/litegram","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipslays%2Flitegram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipslays%2Flitegram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipslays%2Flitegram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipslays%2Flitegram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chipslays","download_url":"https://codeload.github.com/chipslays/litegram/tar.gz/refs/heads/v3.x.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipslays%2Flitegram/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266253575,"owners_count":23900052,"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":["api","api-wrapper","bot","bot-api","library","telegram","telegram-bot"],"created_at":"2024-11-09T04:34:27.605Z","updated_at":"2026-03-08T16:33:34.036Z","avatar_url":"https://github.com/chipslays.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🍃 Litegram\n\n![GitHub Workflow Status](https://img.shields.io/github/workflow/status/chipslays/litegram/tests)\n![GitHub](https://img.shields.io/github/license/chipslays/litegram?color=blue)\n\n\u003e v3.x under **wip**, but can usable.\n\n![](https://github.com/chipslays/litegram/blob/v3.x.x/.github/images/cover-head.png)\n\nSimple, flexible, modular library based on events for Telegram Bot Api.\n\nLitegram can be used as a regular lightweight library or as a framework with added of plugins.\n\n## ⭐ Features\n* Events based (Routing);\n* Cache (Redis, Memcached);\n* Database (based on Laravel [Database](https://laravel.com/docs/8.x/database) + [Eloquent](https://laravel.com/docs/8.x/eloquent));\n* Middlewares;\n* Localization (based on [Phrase](https://github.com/chipslays/phrase));\n* Sessions (based on Storage plugin);\n* Storage (Flat files, Database drivers);\n* Talk (Chain Conversation);\n* Validation (based on [Respect/Validation](https://respect-validation.readthedocs.io/en/2.0/));\n* Stemming;\n* Plugins and Components;\n* Supports Webhooks \u0026 Simple Long-polling (not async);\n\n## 🔩 Installation\n\nInstall via Composer:\n\n```bash\n$ composer require chipslays/litegram\n```\n\n### [📁 Litegram Project](https://github.com/chipslays/litegram-project)\n\nYou can use a ready-made and configured [project](https://github.com/chipslays/litegram-project) for a quick start.\n\nSee more information [here](https://github.com/chipslays/litegram-project).\n\n1️⃣ Create project:\n\n```bash\ncomposer create-project chipslays/litegram-project SuperDuperBot\n```\n\n2️⃣ Change the parameters of the configs and finally type in Terminal:\n\n```bash\nphp lite webhook:set\n```\n\n```bash\nphp lite migration:up\n```\n\n🎉 Congratulation, bot project was set up.\n\n## 💡 Examples\n\n```php\nrequire 'vendor/autoload.php';\n\n$bot = bot($config)-\u003ewebhook();\n\n$bot-\u003ecommand('start', function () use ($bot) {\n    $bot-\u003eask('What is your name?', function () use ($bot) {\n        $name = $bot-\u003epayload('message.text');\n        $bot-\u003ereply(\"👋 Nice to meet you, {$name}!\");\n    });\n});\n\n// or\n$bot-\u003ecommand('start', 'BotController@startConversation');\n\n$bot-\u003erun();\n```\n\n\u003e **Note:** Method `ask` work correctly only if `storage` driver set as `file`.\n\nMore examples you can see [`here`](https://github.com/chipslays/litegram/tree/v3.x.x/examples).\n\n## 📖 Documentation\nDocumentation can be found [`here`](https://github.com/chipslays/litegram/tree/v3.x.x/docs).\n\n## [🧩 VS Code Extension](https://marketplace.visualstudio.com/items?itemName=chipslays.litegram-snippets)\n\nInstall [Litegram Snippets](https://marketplace.visualstudio.com/items?itemName=chipslays.litegram-snippets) extension for VS Code to increase productivity.\n\n## 🔑 License\nReleased under the MIT public license. See the enclosed [`LICENSE`](https://github.com/chipslays/litegram/tree/v3.x.x/LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchipslays%2Flitegram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchipslays%2Flitegram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchipslays%2Flitegram/lists"}