{"id":24154949,"url":"https://github.com/chernegasergiy/turtle-app","last_synced_at":"2025-10-23T20:23:59.083Z","repository":{"id":225654614,"uuid":"551293297","full_name":"ChernegaSergiy/turtle-app","owner":"ChernegaSergiy","description":"TurtleApp is a chatbot application that allows users to create and conduct surveys by asking a series of predefined questions.","archived":false,"fork":false,"pushed_at":"2025-02-22T19:23:24.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-01T23:09:34.694Z","etag":null,"topics":["chatbot","php","surveys","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ChernegaSergiy.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":"2022-10-14T06:22:51.000Z","updated_at":"2025-02-24T04:12:42.000Z","dependencies_parsed_at":"2025-01-01T21:33:53.178Z","dependency_job_id":"8cbc2b8c-0169-4aa3-9ce8-1815bdfb8887","html_url":"https://github.com/ChernegaSergiy/turtle-app","commit_stats":null,"previous_names":["chernegasergiy/turtleapp","chernegasergiy/turtle-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ChernegaSergiy/turtle-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChernegaSergiy%2Fturtle-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChernegaSergiy%2Fturtle-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChernegaSergiy%2Fturtle-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChernegaSergiy%2Fturtle-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChernegaSergiy","download_url":"https://codeload.github.com/ChernegaSergiy/turtle-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChernegaSergiy%2Fturtle-app/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264605021,"owners_count":23635986,"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":["chatbot","php","surveys","telegram-bot"],"created_at":"2025-01-12T12:40:16.275Z","updated_at":"2025-10-23T20:23:59.077Z","avatar_url":"https://github.com/ChernegaSergiy.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TurtleApp\n\n**TurtleApp** is a simple Telegram bot designed to conduct surveys by asking users a series of predefined questions. The bot collects responses and stores them for further analysis.\n\n## Features\n\n- Interactive survey experience through Telegram.\n- Stores user responses in a JSON file.\n- Easy to customize questions.\n\n## Getting Started\n\n### Prerequisites\n\n- PHP 7.4 or higher\n- Composer (for dependency management)\n- A Telegram bot token (you can obtain one by talking to [BotFather](https://t.me/BotFather))\n\n### Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/ChernegaSergiy/turtle-app.git\n   cd turtle-app\n   ```\n\n2. Install dependencies using Composer:\n   ```bash\n   composer install\n   ```\n\n3. Set your bot token in the main script. Open the `index.php` file and replace `YOUR_BOT_TOKEN` with your actual bot token:\n   ```php\n   $token = 'YOUR_BOT_TOKEN';\n   ```\n\n### Running the Bot\n\nTo run the bot, you need to set up a webhook or use a polling method. For simplicity, you can use the polling method by executing the following command:\n\n```bash\nphp bot.php\n```\n\n### Usage\n\n- Start the bot by sending `/start` to your bot in Telegram.\n- Answer the questions one by one.\n- After the last question, the bot will thank you for your responses and complete the survey.\n\n## Customization\n\nYou can customize the questions by modifying the `questions` array in the `TelegramBot` class:\n\n```php\n$this-\u003equestions = [\n    'What is your name?',\n    'How old are you?',\n    'What is your favorite activity?',\n    'What are your hobbies?',\n];\n```\n\n## Contributing\n\nContributions are welcome and appreciated! Here's how you can contribute:\n\n1. Fork the project\n2. Create your feature branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\nPlease make sure to update tests as appropriate and adhere to the existing coding style.\n\n## License\n\nThis project is licensed under the CSSM Unlimited License v2.0 (CSSM-ULv2). See the [LICENSE](LICENSE) file for details.\n\n## Acknowledgments\n\n- [Telegram Bot API](https://core.telegram.org/bots/api) - Documentation for Telegram Bot API\n- [BotFather](https://t.me/BotFather) - The official bot for creating and managing Telegram bots\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchernegasergiy%2Fturtle-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchernegasergiy%2Fturtle-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchernegasergiy%2Fturtle-app/lists"}