{"id":21578133,"url":"https://github.com/chitranjan-gupta/telegram-bot-server","last_synced_at":"2026-03-19T20:54:08.886Z","repository":{"id":203505055,"uuid":"709759344","full_name":"chitranjan-gupta/telegram-bot-server","owner":"chitranjan-gupta","description":"Telegram Bot API Server","archived":false,"fork":false,"pushed_at":"2023-10-25T12:28:50.000Z","size":4,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-24T14:16:41.537Z","etag":null,"topics":["bot","telegram","telegram-bot","telegram-bot-api","telegram-bot-api-server"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/chitranjan-gupta.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}},"created_at":"2023-10-25T10:46:34.000Z","updated_at":"2024-08-27T09:33:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"2708127e-541a-4ef4-9026-f0d18a258fbf","html_url":"https://github.com/chitranjan-gupta/telegram-bot-server","commit_stats":null,"previous_names":["chitranjan-gupta/telegram-bot-server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chitranjan-gupta%2Ftelegram-bot-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chitranjan-gupta%2Ftelegram-bot-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chitranjan-gupta%2Ftelegram-bot-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chitranjan-gupta%2Ftelegram-bot-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chitranjan-gupta","download_url":"https://codeload.github.com/chitranjan-gupta/telegram-bot-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244177529,"owners_count":20410984,"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","telegram-bot","telegram-bot-api","telegram-bot-api-server"],"created_at":"2024-11-24T13:09:43.447Z","updated_at":"2026-02-01T15:32:42.726Z","avatar_url":"https://github.com/chitranjan-gupta.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# telegram-bot-server\n\n## Setup \n\u003e Docker should be installed.\n\n1. Get `api_id` and `api_hash` from [telegram](https://my.telegram.org).\n2. Get the `bot_token` from BotFather Telegram Bot.\n3. Get the `webhook_url` from the Setup of your Bot Webhook Listener\n4. Get the `bot_server_base_url` either using noip or ngrok.\n5. Clone this [repo](https://github.com/chitranjan-gupta/telegram-bot-server)\n```bash\ngit clone https://github.com/chitranjan-gupta/telegram-bot-server\n```\n\n## Build\n1. Go to directory telegram-bot-server\n  ```bash\n  cd telegram-bot-server\n  ```\n2. Build the docker image\n  ```bash\n  docker build -t telegram .\n  ```\n\n## Execute\n1. Make GET request to `https://api.telegram.org/bot[BOT_TOKEN]/logOut` replace with bot_token to logout Telegram Cloud API Server.\n2. Run the docker image\n  ```bash\n  docker run -p 80:80 telegram --api-id [API_ID] --api-hash [API_HASH] --http-port 80\n  ``` \n3. Make GET request to `https://[BOT_SERVER_BASE_URL]/bot[BOT_TOKEN]/setWebhook?url=[WEBHOOK_URL]/\u0026drop_pending_updates=true` replace with bot_server_base_url, bot_token and webhook_url to set webhook url to get updates from the bot.\n\n## Migrate\nIf you want to migrate to different server you have to all the steps from above but before that you have do this\n1. Make GET request to `https://[BOT_SERVER_BASE_URL]/bot[BOT_TOKEN]/getWebhookInfo` replace with bot_server_base_url and bot_token to check about your webhook url.\n2. Make GET request to `https://[BOT_SERVER_BASE_URL]/bot[BOT_TOKEN]/deleteWebhook?drop_pending_updates=true` replace with bot_server_base_url and bot_token to remove your webhook url set previously.\n3. Make GET request to `https://[BOT_SERVER_BASE_URL]/bot[BOT_TOKEN]/close` replace with bot_server_base_url and bot_token to stop the bot instance.\n4. Make GET request to `https://[BOT_SERVER_BASE_URL]/bot[BOT_TOKEN]/logOut` replace with bot_server_base_url and bot_token to logout from Local API Server.\n\n## Sources:\n1. https://core.telegram.org/bots/api\n2. https://github.com/tdlib/telegram-bot-api\n3. https://api.telegram.org/bot[BOT_TOKEN]/getWebhookInfo\n4. https://api.telegram.org/bot[BOT_TOKEN]/setWebhook?url=[WEBHOOK_URL]\u0026drop_pending_updates=true\n5. https://api.telegram.org/bot[BOT_TOKEN]/deleteWebhook?drop_pending_updates=true\n6. https://api.telegram.org/bot[BOT_TOKEN]/close\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchitranjan-gupta%2Ftelegram-bot-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchitranjan-gupta%2Ftelegram-bot-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchitranjan-gupta%2Ftelegram-bot-server/lists"}