{"id":23759842,"url":"https://github.com/sonkodmitry/yii2-telegram-bot-api","last_synced_at":"2025-09-05T05:32:32.196Z","repository":{"id":57055736,"uuid":"39998993","full_name":"SonkoDmitry/yii2-telegram-bot-api","owner":"SonkoDmitry","description":"Telegram bot api component for Yii2","archived":false,"fork":false,"pushed_at":"2015-07-31T13:22:49.000Z","size":120,"stargazers_count":21,"open_issues_count":1,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-24T16:37:01.719Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SonkoDmitry.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-31T09:55:56.000Z","updated_at":"2023-02-02T07:47:43.000Z","dependencies_parsed_at":"2022-08-24T14:00:25.896Z","dependency_job_id":null,"html_url":"https://github.com/SonkoDmitry/yii2-telegram-bot-api","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SonkoDmitry%2Fyii2-telegram-bot-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SonkoDmitry%2Fyii2-telegram-bot-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SonkoDmitry%2Fyii2-telegram-bot-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SonkoDmitry%2Fyii2-telegram-bot-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SonkoDmitry","download_url":"https://codeload.github.com/SonkoDmitry/yii2-telegram-bot-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232026595,"owners_count":18462258,"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":[],"created_at":"2024-12-31T20:28:32.468Z","updated_at":"2024-12-31T20:28:33.102Z","avatar_url":"https://github.com/SonkoDmitry.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Telegram bot API for Yii2\n================\n[![Packagist](https://img.shields.io/packagist/l/sonko-dmitry/yii2-telegram-bot-api.svg)](https://github.com/SonkoDmitry/yii2-telegram-bot-api/blob/master/LICENSE.md)\n[![Dependency Status](https://www.versioneye.com/user/projects/55bb59406537620017001a32/badge.svg?style=flat)](https://www.versioneye.com/user/projects/55bb59406537620017001a32)\n[![Packagist](https://img.shields.io/packagist/v/sonko-dmitry/yii2-telegram-bot-api.svg)](https://packagist.org/packages/sonko-dmitry/yii2-telegram-bot-api)\n[![Packagist](https://img.shields.io/packagist/dt/sonko-dmitry/yii2-telegram-bot-api.svg)](https://packagist.org/packages/sonko-dmitry/yii2-telegram-bot-api)\n\nThis extension is the way to integrate [telegram-bot/api](https://packagist.org/packages/telegram-bot/api) wrapper with your Yii2 application.\n\nInstallation\n------------\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/). \n\n To install, either run\n ```\n $ php composer.phar require sonko-dmitry/yii2-telegram-bot-api:*\n ```\n or add\n ```\n \"sonko-dmitry/yii2-telegram-bot-api\": \"*\"\n ```\n to the `require` section of your `composer.json` file.\n\n\nUsage\n-----\n0. Add the component configuration in your *global* `main.php` config file:\n ```php\n 'components' =\u003e [\n     'bot' =\u003e [\n         'class' =\u003e 'SonkoDmitry\\Yii\\TelegramBot\\Component',\n         'apiToken' =\u003e 'YOUR_BOT_API_TOKEN',\n     ],\n ],\n ```\n\n0. Now you can use component\n ```php\n \\Yii::$app-\u003ebot-\u003esendMessage(1234567, 'Hello world!');\n ```\n Where \"1234567\" receiver telegram id or chat id.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonkodmitry%2Fyii2-telegram-bot-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsonkodmitry%2Fyii2-telegram-bot-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonkodmitry%2Fyii2-telegram-bot-api/lists"}