{"id":26985489,"url":"https://github.com/jyxjjj/telegram-bot","last_synced_at":"2025-04-03T18:29:41.150Z","repository":{"id":37588264,"uuid":"462253415","full_name":"jyxjjj/Telegram-Bot","owner":"jyxjjj","description":"PHP Laravel Telegram Bot","archived":false,"fork":false,"pushed_at":"2024-05-21T03:57:57.000Z","size":4652,"stargazers_count":224,"open_issues_count":0,"forks_count":44,"subscribers_count":30,"default_branch":"main","last_synced_at":"2024-05-21T04:52:03.286Z","etag":null,"topics":["telegram"],"latest_commit_sha":null,"homepage":"","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/jyxjjj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"custom":["https://www.desmg.com/donate"]}},"created_at":"2022-02-22T10:47:30.000Z","updated_at":"2024-05-30T04:14:53.133Z","dependencies_parsed_at":"2022-07-12T16:32:27.569Z","dependency_job_id":"4b06fb5d-42a1-4c55-813a-1a49f6676705","html_url":"https://github.com/jyxjjj/Telegram-Bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jyxjjj%2FTelegram-Bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jyxjjj%2FTelegram-Bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jyxjjj%2FTelegram-Bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jyxjjj%2FTelegram-Bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jyxjjj","download_url":"https://codeload.github.com/jyxjjj/Telegram-Bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247055836,"owners_count":20876287,"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":["telegram"],"created_at":"2025-04-03T18:29:40.731Z","updated_at":"2025-04-03T18:29:41.138Z","avatar_url":"https://github.com/jyxjjj.png","language":"PHP","funding_links":["https://www.desmg.com/donate"],"categories":[],"sub_categories":[],"readme":"# LICENSE CHANGE\n\nAs of 2024-08-01, the license for Telegram-Bot has been updated\nfrom GNU General Public License Version 3 [(GPLv3)](https://www.gnu.org/licenses/gpl-3.0)\nto GNU Affero General Public License Version 3 [(AGPLv3)](https://www.gnu.org/licenses/agpl-3.0).\n\nThis change ensures that any use of the software over a network must also provide the corresponding source code,\nin line with our commitment to software freedom.\n\n# Recently Notice\n\nWe have deleted Searchable Bots and Contribute 3.0 Bots, and we will not provide any support for them.\n\nContribute 2.0 Codes are still available, but we will not provide any support for them.\n\nIt will soon be transfer to other open source enthusiasts.\n\nWe always make our codes open source, and we do not earn any money from them.\n\nIt is hard to maintain the codes, and we have to pay for the server.\n\nMain Bot is still available, and under maintenance.\n\nBut it will have more private code and less open source code.\n\nThis will not affect any of your usage or development, all migration will happen on new codes.\n\nThe main reason to open this project is to make a framework instead of a full bot.\n\nAfter we give such a lot of functions, we found that we have no time to maintain them.\n\nAnd more and more APIs are not free to use.\n\nSo we have no more time to maintain such a lot of bots.\n\nWe are sorry for the inconvenience.\n\nIf you like our codes, you can donate to us via the donate button this README file contains or right side of this repository.\n\nThank you for your support.\n\n# Telegram-Bot\n\nA PHP Laravel Telegram Bot\n\n* [License](#license)\n* [Versions](#versions)\n* [Install](#install)\n    * [Pre-install](#pre-install)\n    * [Run](#run)\n        * [Database Migration](#database-migration)\n        * [GetWebHookInfo](#getwebhookinfo)\n        * [SetWebhook](#setwebhook)\n        * [DeleteWebhook](#deletewebhook)\n        * [Restart Queue Workers](#restart-queue-workers)\n* [Authors](#authors)\n* [Donate](#donate)\n\n# License\n\n[AGPL-3.0-Only](LICENSE)\n\n# Versions\n\n[![DigitalOcean](https://web-platforms.sfo2.cdn.digitaloceanspaces.com/WWW/Badge%201.svg)](https://m.do.co/c/23e8653b361a)\n\n[![Fedora](https://img.shields.io/badge/Fedora-41-blue.svg?style=flat-square)](https://getfedora.org)\n\n[![PHP](https://img.shields.io/badge/PHP-^8.4-purple.svg?style=flat-square)](https://www.php.net/downloads.php)\n\n[![Mariadb](https://img.shields.io/badge/MariaDB-^11.4-yellow.svg?style=flat-square)](https://mariadb.org/download/)\n\n[![Redis](https://img.shields.io/badge/Redis-^7.4-red.svg?style=flat-square)](https://redis.io/download)\n\n# Install\n\nI recommend using SystemD to manage laravel queue workers,\nand SystemD-Timer to manage laravel schedules.\n\nThis is a doc of SystemD + Crontab version.\n\nYou can do anything you want.\n\n## Pre-install\n\n* All this repo commands are tested on Fedora 41\n\nMake a file tree like this:\n\n```\n/www/server/mariadb/\n├── data\n└── mysql\n    └── my.cnf\n/www/server/redis/\n├── conf\n│   └── redis.conf\n└── data\n```\n\nThen run:\n\n```bash\ncp mariadb.container /etc/containers/systemd/mariadb.container\ncp redis.container /etc/containers/systemd/redis.container\nsystemctl daemon-reload\nsystemctl start mariadb.service\nsystemctl start redis.service\n```\n\n## Run\n\n```bash\ndnf update --refresh -y\ndnf install podman* cockpit* --refresh -y\nsystemctl enable --now nginx.service\nsystemctl enable --now php-fpm.service\n\ncomposer install\n./permission.sh\n\nphp artisan key:generate\nphp artisan queue:install\ncp -n .env.example .env\nvim .env\n```\n\n#### Database Migration\n\n```bash\nphp artisan migrate\n```\n\n#### GetWebHookInfo\n\n```bash\nphp artisan command:GetWebhookInfo\n```\n\n#### SetWebhook\n\n```bash\nphp artisan command:SetWebhook\n```\n\n#### DeleteWebhook\n\n```bash\nphp artisan command:DeleteWebhook\n```\n\n#### Restart Queue Workers\n\nIf you edited anything, you may need to restart queue workers,\nto make sure they are using the new configuration,\nor the new codes to be run.\n\nOtherwise, they may update to the latest configurations and codes after 3600 seconds at most.\n\nSo you can send the signal to restart queue workers,\nvia the laravel official command:\n\n```bash\nphp artisan horizon:terminate\n```\n\nOr you can let bot call the laravel official command:\n\n\u003e Send a message to the bot with the command ```/restart```\n\n# Authors\n\n[@jyxjjj](https://t.me/jyxjjj)\n\n[@bluebird_tg](https://t.me/bluebird_tg)\n\n# Donate\n\n\u003ca href=\"https://www.desmg.com/#/donate\"\u003eClick Here\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjyxjjj%2Ftelegram-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjyxjjj%2Ftelegram-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjyxjjj%2Ftelegram-bot/lists"}