{"id":16526757,"url":"https://github.com/nikhiljohn10/telegram-bot-worker","last_synced_at":"2025-09-08T16:43:18.832Z","repository":{"id":43171461,"uuid":"281757930","full_name":"nikhiljohn10/telegram-bot-worker","owner":"nikhiljohn10","description":"A generic telegram bot using cloudflare workers","archived":false,"fork":false,"pushed_at":"2023-08-16T20:21:25.000Z","size":30,"stargazers_count":118,"open_issues_count":0,"forks_count":267,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T05:03:20.136Z","etag":null,"topics":["bot-template","cloudflare-workers","serverless","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/nikhiljohn10.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":"2020-07-22T18:48:49.000Z","updated_at":"2025-03-19T13:40:12.000Z","dependencies_parsed_at":"2024-10-27T11:09:37.072Z","dependency_job_id":"2d6c371d-aa70-4f75-978b-452ee665fe22","html_url":"https://github.com/nikhiljohn10/telegram-bot-worker","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/nikhiljohn10%2Ftelegram-bot-worker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikhiljohn10%2Ftelegram-bot-worker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikhiljohn10%2Ftelegram-bot-worker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikhiljohn10%2Ftelegram-bot-worker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikhiljohn10","download_url":"https://codeload.github.com/nikhiljohn10/telegram-bot-worker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247601447,"owners_count":20964864,"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-template","cloudflare-workers","serverless","telegram-bot"],"created_at":"2024-10-11T17:29:54.680Z","updated_at":"2025-04-07T06:06:29.421Z","avatar_url":"https://github.com/nikhiljohn10.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telegram Bot Worker\nA generic telegram bot using cloudflare workers and Telegram BOT API\n\n### Features\n\n - Manage multiple bots in single script\n - No mantaince needed\n - Serverless deployment across the world by Cloudflare\n - High uptime and low latency\n - Log all request for debugging purpose\n - Connect to various APIs available online\n - SH256 encrypted token as URL Hash for secure access\n - Class based code for modularity\n \n ### How to create new worker\n \nGo to URL, https://dash.cloudflare.com \u003e Workers \u003e Create a worker\n\nThen you can copy paste the [worker.js](https://github.com/nikhiljohn10/telegram-bot-worker/blob/master/worker.js) content in the text editor\n\n ### Usage\n \n Edit `Bot Configurations` section for customising and add Cloudflare worker variable to access bot tokens\n \n Logger bot configuration can be disabled by setting `enabled` option to `false`\n \n Adding new methods to `Telegram Bot Endpoint` section will be added to the command pool in `Bot Configurations` section.\n \n If you need to implement more Telegram bot functionalities, `Generic Bot Class` section is the place to add them.\n \n\n ### How to set/get/delete Webhook?\n \n Go to URL `https://dash.cloudflare.com/{Cloudflare Account ID}/workers/edit/{Worker Name}`. This is where you edit the worker script.\n \n Click on SEND button to receive `{ \"error\": \"Invalid access key\" }` response. This will also log all the bot urls with hash values to access each bots. Log bot's access url is only logged if it is enabled in the configuration.\n \n Use this URLs to access webhooks.\n \n ```\n // If ENV_BOT_HOST_FQDN = https://bot.example.workers.dev/\n \n https://bot.example.workers.dev/{HASH_VALUE}/?command={COMMAND}\n \n Note: COMMANDS are case sensitive\n \n COMMANDS:\n     setWebhook : Set the webhook to https://bot.example.workers.dev/{HASH_VALUE}\n     getWebhook : Get the webhook information of referenced bot using hash value\n     delWebhook : Delete the webhook of referenced bot using hash value\n     getMe : Get all the informations about the referenced bot using hash value\n     \nExample: https://bot.example.workers.dev/d78607faf66861df3e66a180fe80388d78607faf?command=setWebhook // This will set the webhook\n \n ```\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikhiljohn10%2Ftelegram-bot-worker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikhiljohn10%2Ftelegram-bot-worker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikhiljohn10%2Ftelegram-bot-worker/lists"}