{"id":16314244,"url":"https://github.com/rustamwin/yii2-telegram","last_synced_at":"2026-04-24T20:35:41.899Z","repository":{"id":97362591,"uuid":"104871258","full_name":"rustamwin/yii2-telegram","owner":"rustamwin","description":"Yii2 MongoDB telegram bot api","archived":false,"fork":false,"pushed_at":"2017-09-26T11:57:29.000Z","size":141,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-16T23:04:11.073Z","etag":null,"topics":["telegram","telegram-bot-api","yii2"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rustamwin.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":"2017-09-26T10:31:26.000Z","updated_at":"2023-05-21T08:40:21.000Z","dependencies_parsed_at":"2023-05-05T08:46:21.849Z","dependency_job_id":null,"html_url":"https://github.com/rustamwin/yii2-telegram","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/rustamwin/yii2-telegram","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustamwin%2Fyii2-telegram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustamwin%2Fyii2-telegram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustamwin%2Fyii2-telegram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustamwin%2Fyii2-telegram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rustamwin","download_url":"https://codeload.github.com/rustamwin/yii2-telegram/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustamwin%2Fyii2-telegram/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32240059,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: 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":["telegram","telegram-bot-api","yii2"],"created_at":"2024-10-10T21:53:29.270Z","updated_at":"2026-04-24T20:35:41.885Z","avatar_url":"https://github.com/rustamwin.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **Telegram support Bot for Yii2**\n[![Latest Stable Version](https://poser.pugx.org/rustam95/yii2-telegram/v/stable)](https://packagist.org/packages/rustam95/yii2-telegram) [![Total Downloads](https://poser.pugx.org/rustam95/yii2-telegram/downloads)](https://packagist.org/packages/rustam95/yii2-telegram) [![License](https://poser.pugx.org/rustam95/yii2-telegram/license)](https://packagist.org/packages/rustam95/yii2-telegram) [![Daily Downloads](https://poser.pugx.org/rustam95/yii2-telegram/d/daily)](https://packagist.org/packages/rustam95/yii2-telegram) [![Monthly Downloads](https://poser.pugx.org/rustam95/yii2-telegram/d/monthly)](https://packagist.org/packages/rustam95/yii2-telegram)\n\n**Support chat for site based on Telegram bot**\n\nThe Bot logic based on [akalongman/php-telegram-bot](https://github.com/akalongman/php-telegram-bot), so you can read Instructions by longman how to register Telegram Bot and etc.\n\n***Now only telegram webhook api support. You need SSL cert! Doesn't work on http!*** \n\n**Installation**\n------------\n\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\nRun\n\n\n    composer require rustam95/yii2-telegram\n\n \n add to your web config:\n  \n     'modules' =\u003e [\n\t     //...\n        'telegram' =\u003e [\n            'class' =\u003e 'rustam95\\telegram\\Module',\n            'API_KEY' =\u003e 'forexample241875489:AdfgdfFuVJdsKa1cycuxra36g4dfgt66',\n            'BOT_NAME' =\u003e 'YourBotName_bot',\n            'hook_url' =\u003e 'https://yourhost.com/telegram/default/hook', // must be https!\n            'PASSPHRASE' =\u003e 'passphrase for login',\n            // 'db' =\u003e 'db2', //db file name from config dir\n\t        // 'userCommandsPath' =\u003e '@app/modules/telegram/UserCommands',\n\t        // 'timeBeforeResetChatHandler' =\u003e 60\n        ]\n\t    //more...\n     ]\n     \n and to console config:\n \n     'bootstrap' =\u003e [   \n     //other bootstrap components...\n                    'telegram'],\n     'modules' =\u003e [\n             //...\n         'telegram' =\u003e [\n             'class' =\u003e 'rustam95\\telegram\\Module',\n             'API_KEY' =\u003e 'forexample241875489:AdfgdfFuVJdsKa1cycuxra36g4dfgt66',\n             'BOT_NAME' =\u003e 'YourBotName_bot',\n         ]\n     ],       \n\ngo to https://yourhost.com/telegram/default/set-webhook\n\nNow you can place where you want\n\n    echo \\rustam95\\telegram\\Telegram::widget(); //that add chat button in the page\n\nin bottom right corner you can see:\n\n![chat button](https://github.com/modules/yii2-telegram/blob/wiki/_wiki/04.png?raw=true)\n\nif you click it:\n\n![client chat](https://github.com/modules/yii2-telegram/blob/wiki/_wiki/03.png?raw=true)\n\nand server side:\n\n![client chat](https://github.com/modules/yii2-telegram/blob/wiki/_wiki/02.png?raw=true)\n\nIf you want to limit the storage period of messages history, add to you crontab:\n\n    #leave 5 days (if empty - default = 7)\n    php yii telegram/messages/clean 5\n\nAlso you can use custom commands. To do this, you should copy UserCommands dir from /vendor/modules/yii2-telegram/Commands and add path to this in config, for example:\n\n    'userCommandsPath' =\u003e '@app/modules/telegram/UserCommands'\n\n**timeBeforeResetChatHandler** - the number of minutes before chat handler will be killed (if he forgot do /leavedialog). Never kill if 0 or not setted.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frustamwin%2Fyii2-telegram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frustamwin%2Fyii2-telegram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frustamwin%2Fyii2-telegram/lists"}