{"id":36465147,"url":"https://github.com/yalagtyarzh/leaf_bot","last_synced_at":"2026-01-12T00:02:02.061Z","repository":{"id":45967192,"uuid":"422942988","full_name":"yalagtyarzh/leaf_bot","owner":"yalagtyarzh","description":"Pocket client for telegram bot web application","archived":false,"fork":false,"pushed_at":"2021-11-23T18:49:21.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-21T01:44:02.332Z","etag":null,"topics":["go","golang","pocket","telegram","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"Go","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/yalagtyarzh.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}},"created_at":"2021-10-30T17:08:25.000Z","updated_at":"2024-06-21T01:44:02.333Z","dependencies_parsed_at":"2022-09-23T08:52:24.600Z","dependency_job_id":null,"html_url":"https://github.com/yalagtyarzh/leaf_bot","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/yalagtyarzh/leaf_bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yalagtyarzh%2Fleaf_bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yalagtyarzh%2Fleaf_bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yalagtyarzh%2Fleaf_bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yalagtyarzh%2Fleaf_bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yalagtyarzh","download_url":"https://codeload.github.com/yalagtyarzh/leaf_bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yalagtyarzh%2Fleaf_bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28328691,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T22:11:01.104Z","status":"ssl_error","status_checked_at":"2026-01-11T22:10:58.990Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["go","golang","pocket","telegram","telegram-bot"],"created_at":"2026-01-12T00:02:01.942Z","updated_at":"2026-01-12T00:02:02.052Z","avatar_url":"https://github.com/yalagtyarzh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Leaf (pocket) bot\n\nLeafBot - is a Telegram bot, which allows you to save link in the application [Pocket](https://getpocket.com/). Leafbot is a client for Pocket. \n\n## Used libraries:\n- The [telegram-bot-api](https://github.com/go-telegram-bot-api/telegram-bot-api) is used to work with the telegram bot. \n- [BoltDB](https://github.com/boltdb/bolt) is used as storage.\n- [Viper](https://github.com/spf13/viper) is used to get data from config files\n\n## Implement\nFirst at all, when the bot started, bot generates the link with unique request token, which created and stored in DB when user started the bot, and send it to the user, at the click of the link authorization process starts.\n\nTo implement user authorization, together with the bot, an HTTP server is started on port 80. HTTP server is using for creating access token, put it in the DB and redirecting from Pocket after successful user authorization.\n\nAfter the authorization process, user can save links to Pocket by LeafBot.\n\n## How to use\nFor local using you can clone this repository via git:\n\n```bash\ngit clone github.com/yalagtyarzh/leaf_bot\n```\n\nor install it via go: \n\n```bash\ngo install github.com/yalagtyarzh/leaf_bot\n```\n\nAfter, you need to:\n- Build a program with the pre-registred enviroment dependencies using [Docker](https://www.docker.com/):\n\n```bash\ndocker build -t \u003cbuild-name\u003e .\n```\n\nand run it like that:\n\n```bash\ndocker run -e TOKEN -e CONSUMER_KEY -e AUTH_SERVER_URL -d \\ --name \u003ccontainer-name\u003e\n```\n\nYou can use Makefile for building docker image and running docker container (Makefile must be installed).\n\n- Uncomment os.Setenv functions in [config.go](https://github.com/yalagtyarzh/leaf_bot/blob/master/config/config.go) and enter telegram bot token instead of YourAwesomeBotToken, enter Pocket consumer key instead of YourAwesomePocketToken and enter vaild authorization server instead and build program using go tools or Makefile (Makefile must be installed) (not recommended).\n\n```bash\nmake run\n```\n\nAfter these steps, the bot should start (hopefully Kappa).\n\n## Stack:\n- [Go](https://golang.org/)\n- [Docker](https://www.docker.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyalagtyarzh%2Fleaf_bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyalagtyarzh%2Fleaf_bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyalagtyarzh%2Fleaf_bot/lists"}