{"id":16100614,"url":"https://github.com/nyavro/positive","last_synced_at":"2025-03-18T07:31:17.035Z","repository":{"id":73218069,"uuid":"483318223","full_name":"nyavro/positive","owner":"nyavro","description":"Web App Telegram bot","archived":false,"fork":false,"pushed_at":"2022-04-21T15:02:22.000Z","size":267,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T08:05:40.842Z","etag":null,"topics":["bot","telegram","webapp"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/nyavro.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}},"created_at":"2022-04-19T16:09:49.000Z","updated_at":"2022-05-06T07:27:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"af796750-2bf8-466c-830b-45b8e1e34ee0","html_url":"https://github.com/nyavro/positive","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/nyavro%2Fpositive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nyavro%2Fpositive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nyavro%2Fpositive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nyavro%2Fpositive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nyavro","download_url":"https://codeload.github.com/nyavro/positive/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243910780,"owners_count":20367544,"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":["bot","telegram","webapp"],"created_at":"2024-10-09T18:47:26.628Z","updated_at":"2025-03-18T07:31:17.030Z","avatar_url":"https://github.com/nyavro.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Positive\n\nPositive is a simple [Telegram](https://telegram.org/) bot demonstrating *Web Apps* \nfeature introduced in [Bot API v.6.0](https://core.telegram.org/bots/api#april-16-2022)\n\nThe bot itself is a modified [echo bot](https://github.com/kotlin-telegram-bot/kotlin-telegram-bot/tree/main/samples/echo) implemented using Kotlin wrapper around Telegram bot API\nWeb application source code is under **UI** folder, it is implemented using React and Typescript.\n\n### Running\n\nTo run the bot:\n1. Create the bot account and obtain bot token at [@BotFather](https://t.me/botfather)\n2. Save the token to an environment variable named POSITIVE_BOT_TOKEN, it is used throught the project\n3. Build Web App:\n\n       cd ui\n       npm i\n       npm run build\n       \n   After build is done you'll see web static files required for Bot web app at /dist folder. \n4. Host generated static somewhere available by HTTPS protocol, for example https://nyavro.github.io/index.html\n5. Go to @BotFather and run command /setmenubutton with an URL configured at previous step.\n6. Run main Main.kt. This will start echo bot.\n7. Open your bot in Telegram and click at Bot's 'menu' button configured at step 5.\n8. See the web app, click buttons and get a response from web app to the bot: \n \n       \n![photo_2022-04-21_22-00-06](https://user-images.githubusercontent.com/3238013/164487432-8f43bb28-459c-4af9-a554-a3e7e7719d75.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnyavro%2Fpositive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnyavro%2Fpositive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnyavro%2Fpositive/lists"}