{"id":23080460,"url":"https://github.com/mishankov/telegram-to-pocket-bot","last_synced_at":"2026-03-06T19:35:00.205Z","repository":{"id":156222289,"uuid":"568332282","full_name":"mishankov/telegram-to-pocket-bot","owner":"mishankov","description":"Telegram Bot to save links to Pocket","archived":false,"fork":false,"pushed_at":"2023-01-05T15:38:11.000Z","size":25,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-10T08:03:34.833Z","etag":null,"topics":["nim","nim-lang","pocket","pocket-api","telegram","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"Nim","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/mishankov.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-11-20T07:22:39.000Z","updated_at":"2024-05-12T10:33:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"fd18aa94-903b-4cd5-b659-7d55fe0102b8","html_url":"https://github.com/mishankov/telegram-to-pocket-bot","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mishankov/telegram-to-pocket-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mishankov%2Ftelegram-to-pocket-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mishankov%2Ftelegram-to-pocket-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mishankov%2Ftelegram-to-pocket-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mishankov%2Ftelegram-to-pocket-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mishankov","download_url":"https://codeload.github.com/mishankov/telegram-to-pocket-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mishankov%2Ftelegram-to-pocket-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30193649,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"ssl_error","status_checked_at":"2026-03-06T18:57:34.882Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["nim","nim-lang","pocket","pocket-api","telegram","telegram-bot"],"created_at":"2024-12-16T13:14:07.331Z","updated_at":"2026-03-06T19:35:00.155Z","avatar_url":"https://github.com/mishankov.png","language":"Nim","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telegram to Pocket bot\n\n[![CI](https://github.com/mishankov/telegram-to-pocket-bot/actions/workflows/ci.yml/badge.svg)](https://github.com/mishankov/telegram-to-pocket-bot/actions/workflows/ci.yml)\n\nSave bookmarks to [Pocket](https://getpocket.com/) sending links to [Telegram](https://telegram.org/) bot\n\n## Using\n\n### Instalation\n\nYou can use Windows, Ubuntu or macOS executables provided in the [latest release](https://github.com/mishankov/telegram-to-pocket-bot/releases/latest), but preferred way is to use Docker and Docker Compose.\n\nTo do it clone this repo\n\n```bash\ngit clone https://github.com/mishankov/telegram-to-pocket-bot.git\ncd telegram-to-pocket-bot\nmv config.template.toml config.toml\n```\nThen edit `config.toml` file with folowing variables:\n\n- `telegramBotToken` - Telegram bot token provided by BotFather. [Docs](https://core.telegram.org/bots)\n- `telegramAllowedUsers` - IDs of Telegram users, that well be allowed to use this bot. You can get your ID from this [bot](https://t.me/my_id_bot)\n- `pocketConsumerKey` - Pocket Consumer Key you can get by creating an app in Pocket. [Docs](https://getpocket.com/developer/)\n- `pocketAccessToken` - access token you get using [Pocket Authentication API](https://getpocket.com/developer/docs/authentication)\n\nThen run container\n\n```bash\ndocker-compose up -d\n```\n\nYou can automaticaly generate `pocketAccessToken` running\n\n```bash\n./build/generate_token\n```\n\nIf you have nim compiler installed. Or you can run\n\n```bash\ndocker exec -it tg-to-pocket ./build/generate_token\n```\nAfter you followed all the instructions you will be provided with the line `pocketAccessToken = \u003ctoken\u003e` that you can put in `config.toml`\n\n### Telegram webhook setup\n\nAfter you get all up and runnig you should be able to send HTTP POST request to `http://\u003cyour_ip\u003e:5000//tg/wh/\u003cTELEGRAM_BOT_TOKEN\u003e`. Telegram nowadays only send webhooks to HTTPS endpoints. So you need some kind of reverse proxy to setup HTTPS. I recommend using [Caddy](https://caddyserver.com/). Basic config in `Caddyfile` to get started:\n\n```\n{\n    email \u003cyour email to sign ssl certificate\u003e\n}\n\n\u003cyour domain\u003e {\n    reverse_proxy 0.0.0.0:5000\n}\n```\nAfter Caddy is set up you shoud be able to use [setWebhook](https://core.telegram.org/bots/api#setwebhook) method of Telegram Bot API to setup incoming webhooks to your bot.\n\nAfter you have done this, try to send link to your bot. It should appear here [https://getpocket.com/saves](https://getpocket.com/saves)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmishankov%2Ftelegram-to-pocket-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmishankov%2Ftelegram-to-pocket-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmishankov%2Ftelegram-to-pocket-bot/lists"}