{"id":15134078,"url":"https://github.com/cooloneofficial/botter","last_synced_at":"2025-08-19T06:35:32.059Z","repository":{"id":75406684,"uuid":"322855711","full_name":"CoolONEOfficial/Botter","owner":"CoolONEOfficial","description":"🤖 Crossplatform chatbot framework for Swift supporting Telegram \u0026 VK","archived":false,"fork":false,"pushed_at":"2023-07-30T12:07:20.000Z","size":203,"stargazers_count":101,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-06T15:53:45.126Z","etag":null,"topics":["server-side-swift","swift","swift-nio","swift5","telegram","telegram-bot","vapor","vapor-framework","vk","vk-bot","vkontakte"],"latest_commit_sha":null,"homepage":"https://cooloneofficial.github.io/PhotoBotSite/","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CoolONEOfficial.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2020-12-19T13:37:32.000Z","updated_at":"2025-01-29T12:12:59.000Z","dependencies_parsed_at":"2025-02-08T12:43:11.068Z","dependency_job_id":null,"html_url":"https://github.com/CoolONEOfficial/Botter","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/CoolONEOfficial/Botter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoolONEOfficial%2FBotter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoolONEOfficial%2FBotter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoolONEOfficial%2FBotter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoolONEOfficial%2FBotter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CoolONEOfficial","download_url":"https://codeload.github.com/CoolONEOfficial/Botter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoolONEOfficial%2FBotter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271113561,"owners_count":24701609,"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","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["server-side-swift","swift","swift-nio","swift5","telegram","telegram-bot","vapor","vapor-framework","vk","vk-bot","vkontakte"],"created_at":"2024-09-26T05:02:19.251Z","updated_at":"2025-08-19T06:35:32.051Z","avatar_url":"https://github.com/CoolONEOfficial.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n\u003cp align=\"center\"\u003e\u003cimg width=200 src=\"logo.png\" alt=\"Vkontakter logo\"\u003e\u003c/p\u003e\n\n# Botter\n\nCrossplatform Bot Framework written in Swift 5.3 with Vapor framework unifying [Telegrammer](https://github.com/givip/Telegrammer) and [Vkontakter](https://github.com/CoolONEOfficial/Vkontakter)\n\n[![MacOS](https://github.com/CoolONEOfficial/Botter/actions/workflows/macos.yml/badge.svg)](https://github.com/CoolONEOfficial/Botter/actions/workflows/macos.yml)\n[![Ubuntu](https://github.com/CoolONEOfficial/Botter/actions/workflows/ubuntu.yml/badge.svg)](https://github.com/CoolONEOfficial/Botter/actions/workflows/ubuntu.yml)\n[![Version](https://img.shields.io/badge/version-0.1.0-blue.svg)](https://github.com/givip/Telegrammer/releases)\n[![Language](https://img.shields.io/badge/language-Swift%205.1-orange.svg)](https://swift.org/download/)\n[![Platform](https://img.shields.io/badge/platform-Linux%20/%20macOS-ffc713.svg)](https://swift.org/download/)\n[![License](https://img.shields.io/badge/license-MIT-lightgrey.svg)](https://github.com/CoolONEOfficial/Vkontakter/blob/master/LICENSE)\n\n\nWhat does it do\n---------------\n\nBotter is open-source framework for crossplatform bots developers.\nIt was built on top of Vapor framework\n\nThe simplest code of Echo Bot looks like this:\n\n-------------\n\n_main.swift_\n\n```swift\nimport Foundation\nimport Botter\nimport Vkontakter\nimport Telegrammer\n\nvar vkSettings = Vkontakter.Bot.Settings(token: vkToken)\nlet vkPort = Int(Enviroment.get(\"VK_PORT\") ?? \"1213\")!\n\nvkSettings.webhooksConfig = .init(\n    ip: \"0.0.0.0\",\n    url: Enviroment.get(\"VK_BOT_WEBHOOK_URL\")!, // or use openUrl(vkPort)\n    port: vkPort,\n    groupId: UInt64(Enviroment.get(\"VK_GROUP_ID\")!)!\n)\n\nvar tgSettings = Telegrammer.Bot.Settings(token: tgToken)\nlet tgPort = Int(Enviroment.get(\"TG_PORT\") ?? \"1212\")!\n \ntgSettings.webhooksConfig = .init(\n    ip: \"0.0.0.0\",\n    url: Enviroment.get(\"TG_WEBHOOK_URL\")!, // or use openUrl(tgPort)\n    port: tgPort\n)\n\nvar settings = Bot.Settings(vk: vkSettings, tg: tgSettings)\n\nlet bot = try Bot(settings: settings)\n\nlet echoHandler = MessageHandler { (update, context) in\n    guard case let .message(message) = update.content,\n          let text = message.text else { return }\n\n    _ = try bot.getUser(from: update, app: context.app)?.throwingFlatMap { user in\n        try message.reply(.init(text: \"Hello, \\(user.firstName ?? \"anonymous\")\"), context: context)\n    }\n}\n\nlet dispatcher = Dispatcher(bot: bot)\ndispatcher.add(handler: echoHandler)\n\n_ = try Updater(bot: bot, dispatcher: dispatcher).startWebhooks(serverName: \"testserver\")\n\n```\n\nDocumentation\n---------------\n\n- Read [our wiki](https://github.com/CoolONEOfficial/Botter/wiki)\n- Read [An official documentation of Vapor](https://docs.vapor.codes/4.0/)\n\nRequirements\n---------------\n\n- Ubuntu 16.04 or later with [Swift 5.1 or later](https://swift.org/getting-started/) / macOS with [Xcode 11 or later](https://swift.org/download/)\n- Vk account and a Vk App for mobile platform or online (desktop client does not support some chatbot features)\n- [Swift Package Manager (SPM)](https://github.com/apple/swift-package-manager/blob/master/Documentation/Usage.md) for dependencies \n- [Vapor 4](https://vapor.codes)\n\nContributing\n---------------\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) file.\n\nAuthor\n---------------\n\nNikolai Trukhin\n\n[coolone.official@gmail.com](mailto:coolone.official@gmail.com)\n[@cooloneofficial](tg://user?id=356008384)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcooloneofficial%2Fbotter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcooloneofficial%2Fbotter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcooloneofficial%2Fbotter/lists"}