{"id":50112571,"url":"https://github.com/core-euler/psychotest","last_synced_at":"2026-05-23T13:05:53.482Z","repository":{"id":345787364,"uuid":"1172845303","full_name":"core-euler/psychotest","owner":"core-euler","description":null,"archived":false,"fork":false,"pushed_at":"2026-03-20T18:02:09.000Z","size":26274,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-21T08:39:05.765Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/core-euler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-04T18:42:50.000Z","updated_at":"2026-03-20T18:02:13.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/core-euler/psychotest","commit_stats":null,"previous_names":["core-euler/psychotest"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/core-euler/psychotest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/core-euler%2Fpsychotest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/core-euler%2Fpsychotest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/core-euler%2Fpsychotest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/core-euler%2Fpsychotest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/core-euler","download_url":"https://codeload.github.com/core-euler/psychotest/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/core-euler%2Fpsychotest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33396646,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T04:15:53.637Z","status":"ssl_error","status_checked_at":"2026-05-23T04:15:53.242Z","response_time":53,"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":[],"created_at":"2026-05-23T13:05:51.815Z","updated_at":"2026-05-23T13:05:53.473Z","avatar_url":"https://github.com/core-euler.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# psychotest bot\n\nTelegram bot on `aiogram 3` with inline-only flow, payment webhook + manual admin fallback.\n\nTest logic:\n- 8 questions\n- each question answered 2 times\n- first selected option is removed before second pick\n- final result = leading + secondary type from total scores\n\n## Run locally\n\n1. Create `.env` from `.env.example`.\n2. Install dependencies:\n\n```bash\npython3 -m venv .venv\n. .venv/bin/activate\npip install -r requirements.txt\n```\n\n3. Start Postgres and bot via Docker Compose:\n\n```bash\ndocker compose up --build\n```\n\nBot process starts polling and webhook server on `:8081`.\n\n## Media files\n\nExpected files in `bot/media/`:\n- `start_cover.png`\n- `masterclass_cover.png`\n- `type_a.png ... type_f.png`\n- `masterclass_promo.mp4` (optional in current implementation)\n\nCurrent post-test sequence in code:\n1. Result image + summary.\n2. Two inline buttons with Telegra.ph links (leading and secondary types).\n3. Placeholder message: `ТУТ БУДЕТ ВИДЕО`.\n4. Timer 2 minutes.\n5. Payment offer message.\n6. Reminder in 1 hour if unpaid.\n\n## Webhook endpoint\n\n`POST /prodamus/webhook`\n\nPayload must include `telegram_user_id` (or `user_id`) and success status (`paid/success/confirmed/succeeded`).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcore-euler%2Fpsychotest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcore-euler%2Fpsychotest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcore-euler%2Fpsychotest/lists"}