{"id":31723374,"url":"https://github.com/themysteriousstranger90/telegrambotforgithub","last_synced_at":"2026-05-05T17:33:39.713Z","repository":{"id":305847662,"uuid":"1021925210","full_name":"TheMysteriousStranger90/TelegramBotForGitHub","owner":"TheMysteriousStranger90","description":"This is a Telegram bot built with .NET 8 Azure Functions (Isolated Worker model) that integrates with GitHub to provide real-time notifications, OAuth-based login, and repository interaction.","archived":false,"fork":false,"pushed_at":"2025-08-02T09:39:20.000Z","size":1357,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-02T11:43:46.602Z","etag":null,"topics":["azure-functions","azurite","bot","csharp","dotnet","github","github-app","ngrok","telegram"],"latest_commit_sha":null,"homepage":"","language":"C#","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/TheMysteriousStranger90.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,"zenodo":null}},"created_at":"2025-07-18T07:00:46.000Z","updated_at":"2025-08-02T09:37:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"4dc1a0ee-d039-422d-8f0a-a07ae3ff13d4","html_url":"https://github.com/TheMysteriousStranger90/TelegramBotForGitHub","commit_stats":null,"previous_names":["themysteriousstranger90/telegrambotforgithub"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/TheMysteriousStranger90/TelegramBotForGitHub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheMysteriousStranger90%2FTelegramBotForGitHub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheMysteriousStranger90%2FTelegramBotForGitHub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheMysteriousStranger90%2FTelegramBotForGitHub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheMysteriousStranger90%2FTelegramBotForGitHub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheMysteriousStranger90","download_url":"https://codeload.github.com/TheMysteriousStranger90/TelegramBotForGitHub/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheMysteriousStranger90%2FTelegramBotForGitHub/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000694,"owners_count":26082921,"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-10-09T02:00:07.460Z","response_time":59,"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":["azure-functions","azurite","bot","csharp","dotnet","github","github-app","ngrok","telegram"],"created_at":"2025-10-09T04:52:50.214Z","updated_at":"2025-10-09T04:52:55.032Z","avatar_url":"https://github.com/TheMysteriousStranger90.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telegram Bot for GitHub\n\nThis is a **Telegram bot** built with **.NET 8 Azure Functions (Isolated Worker model)** that integrates with **GitHub** to provide real-time notifications, OAuth-based login, and repository interaction. It is designed for local development with **ngrok** and **Azurite** (via Docker).\n\n![Image 1](Screenshots/Screen1.png)\n![Image 1](Screenshots/Screen2.png)\n![Image 1](Screenshots/Screen3.png)\n![Image 1](Screenshots/Screen4.png)\n![Image 1](Screenshots/Screen5.png)\n\n## ✨ Features\n\n- 🔐 GitHub OAuth authentication via `/auth` and `/logout`\n- 👤 Profile commands like `/profile`, `/myrepos`, `/myissues`, `/mypullrequests`\n- 📜 Check issues and pull requests for other users.\n- 📥 Subscribe/unsubscribe to specific repositories\n- 📬 Notification support for specific repositories:\n   - Push events\n   - Pull requests\n   - Issues\n- 💬 Supports GitHub webhooks and Telegram webhooks\n- 💾 Azure Table Storage used for storing subscriptions\n\n## ⚙️ Technologies\n\n- **Backend**: .NET 8, C#\n- **Framework**: Azure Functions v4 (.NET Isolated Worker)\n- **Database**: Azure Table Storage\n- **API Clients**:\n  - `Telegram.Bot` for Telegram Bot API\n  - `Octokit` for GitHub REST API\n- **Tooling**:\n  - **Azurite**: Local Azure Storage emulator.\n  - **Ngrok**: Exposes local endpoints to the internet for webhook testing.\n\n---\n\n## 🚀 Getting Started (Local Development)\n\nFollow these steps to set up and run the project on your local machine.\n\n### Prerequisites\n\n- [.NET 8 SDK](https://dotnet.microsoft.com/download/dotnet/8.0)\n- [Docker Desktop](https://www.docker.com/products/docker-desktop/)\n- [Ngrok Account \u0026 CLI](https://ngrok.com/download)\n- A **Telegram Bot**. Create one by talking to [@BotFather](https://t.me/BotFather) and get your API token.\n- A **GitHub OAuth App**. Create one in your GitHub settings:\n  - Go to `Settings` \u003e `Developer settings` \u003e `OAuth Apps` \u003e `New OAuth App`.\n  - **Homepage URL**: Use your ngrok URL (e.g., `https://your-subdomain.ngrok-free.app`).\n  - **Authorization callback URL**: Set it to `https://your-subdomain.ngrok-free.app/api/auth/github/callback`.\n\n### Run Azurite Storage Emulator:\n   Open a terminal and run the following Docker command to start a local Azurite instance.\n```bash\ndocker pull mcr.microsoft.com/azure-storage/azurite\ndocker run -p 10000:10000 -p 10001:10001 -p 10002:10002 -v c:/azurite:/data mcr.microsoft.com/azure-storage/azurite\n```\n\n### Expose your local host with Ngrok:\n   The Azure Functions project runs on port 7071 by default. Open a new terminal and run:\n```bash\nngrok http 7071\n```\nNgrok will give you a public Forwarding URL (e.g., https://\u003crandom-string\u003e.ngrok-free.app). Copy this URL.\n\n### Configure your settings:\n   Create a file named local.settings.json in the root of the project. Paste the content below and fill in your own credentials.\n\n```json\n{\n  \"IsEncrypted\": false,\n  \"Values\": {\n    \"AzureWebJobsStorage\": \"UseDevelopmentStorage=true\",\n    \"FUNCTIONS_WORKER_RUNTIME\": \"dotnet-isolated\",\n    \"Telegram__Token\": \"\u003cyour-telegram-bot-token\u003e\",\n    \"GitHub__Token\": \"\u003cyour-github-token\u003e\",\n    \"GitHub__WebhookSecret\": \"\u003cyour-webhook-secret\u003e\",\n    \"GitHub__ClientId\": \"\u003cyour-github-client-id\u003e\",\n    \"GitHub__ClientSecret\": \"\u003cyour-github-client-secret\u003e\",\n    \"GitHub__AppId\": \"\u003cyour-github-app-id\u003e\",\n    \"GitHub__PrivateKey\": \"\u003cyour-github-app-private-key\u003e\",\n    \"GitHub__RedirectUri\": \"https://\u003cyour-ngrok-subdomain\u003e.ngrok-free.app/api/auth/github/callback\",\n    \"TableStorage__ConnectionString\": \"DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;QueueEndpoint=http://127.0.0.1:10001/devstoreaccount1;TableEndpoint=http://127.0.0.1:10002/devstoreaccount1;\",\n    \"TableStorage__TableName\": \"TelegramBotData\",\n    \"BaseUrl\": \"https://\u003cyour-ngrok-subdomain\u003e.ngrok-free.app\"\n  },\n  \"Host\": {\n    \"LocalHttpPort\": 7071,\n    \"CORS\": \"*\"\n  }\n}\n```\n\n### Run the Application:\nYou can run the project from your IDE (Visual Studio, Rider, VS Code) or using PowerShell script: **.bot.ps1**\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n## Author\n\nBohdan Harabadzhyu\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n\n## YouTube Review\n\u003cdetails\u003e\n\u003csummary\u003e📺 Watch Video Review\u003c/summary\u003e\n\n[![YouTube](https://img.youtube.com/vi/x5k0No31Q4A/maxresdefault.jpg)](https://youtu.be/x5k0No31Q4A)\n\u003c/details\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemysteriousstranger90%2Ftelegrambotforgithub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthemysteriousstranger90%2Ftelegrambotforgithub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemysteriousstranger90%2Ftelegrambotforgithub/lists"}