{"id":21644615,"url":"https://github.com/federicog2/telegrambot","last_synced_at":"2026-04-16T13:35:27.036Z","repository":{"id":246976984,"uuid":"824748851","full_name":"FedericoG2/TelegramBot","owner":"FedericoG2","description":"Telegram bot developed in C# for Zona Deportiva, a sportswear store. ","archived":false,"fork":false,"pushed_at":"2024-07-05T21:28:35.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-25T04:28:22.330Z","etag":null,"topics":["csharp","sqlite","telegram-bot"],"latest_commit_sha":null,"homepage":"https://www.loom.com/share/29b49bec5a714525b76478a8aeea9d2e?sid=419f95bd-994d-492a-a4fa-bdc9c6d326bb","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/FedericoG2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2024-07-05T21:10:58.000Z","updated_at":"2024-07-05T21:29:33.000Z","dependencies_parsed_at":"2024-07-06T02:24:04.873Z","dependency_job_id":"30d170ae-23d4-4d6d-ae94-53c566ef30e2","html_url":"https://github.com/FedericoG2/TelegramBot","commit_stats":null,"previous_names":["federicog2/telegrambot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedericoG2%2FTelegramBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedericoG2%2FTelegramBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedericoG2%2FTelegramBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedericoG2%2FTelegramBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FedericoG2","download_url":"https://codeload.github.com/FedericoG2/TelegramBot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244413461,"owners_count":20448710,"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":["csharp","sqlite","telegram-bot"],"created_at":"2024-11-25T05:41:29.580Z","updated_at":"2026-04-16T13:35:26.986Z","avatar_url":"https://github.com/FedericoG2.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zona Deportiva Telegram Bot\n\n## Description\n\nThis is a Telegram bot developed in C# for **Zona Deportiva**, a sportswear store. The bot allows users to interact with the store in the following ways:\n\n- View the product catalog.\n- List available branches.\n- See accepted payment methods.\n- Reserve products.\n\n## Requirements\n\n- [.NET 8.0 SDK](https://dotnet.microsoft.com/download/dotnet/6.0)\n- [SQLite](https://www.sqlite.org/index.html)\n- [Telegram Bot API Token](https://core.telegram.org/bots#3-how-do-i-create-a-bot)\n\n## Setup\n\n1. Clone this repository to your local machine:\n    ```bash\n    git clone https://github.com/your-username/zona-deportiva-bot.git\n    ```\n\n2. Navigate to the project directory:\n    ```bash\n    cd zona-deportiva-bot\n    ```\n\n3. Restore the required NuGet packages:\n    ```bash\n    dotnet restore\n    ```\n\n4. Configure the SQLite database connection string in the code (`Program.cs`):\n    ```csharp\n    private const string ConnectionString = \"Data Source=C:\\\\Users\\\\fgfed\\\\Desktop\\\\TelegramBot\\\\TelegramBot\\\\db\\\\zonaDeportiva.db\";\n    ```\n\n5. Configure the Telegram bot token in the code (`Program.cs`):\n    ```csharp\n    botClient = new TelegramBotClient(\"YOUR_TELEGRAM_BOT_API_TOKEN\");\n    ```\n\n## Usage\n\n1. Run the bot:\n    ```bash\n    dotnet run\n    ```\n\n2. Start a conversation with your bot on Telegram by sending the `/start` command.\n\n3. Use the following menu options to interact with the bot:\n    - **Product Catalog 📦**: View the available product catalog.\n    - **Payment Options 💳**: Show accepted payment methods.\n    - **Reserve a Product 📅**: Reserve a product by providing name, email, and product ID.\n    - **Branches 📍**: List the store's branches.\n    - **Say Goodbye 👋**: End the conversation with the bot.\n\n## Code Structure\n\n- `Main`: Configures and runs the bot.\n- `HandleUpdateAsync`: Handles incoming updates from the bot.\n- `HandlePollingErrorAsync`: Handles polling errors.\n- `ObtenerCatalogoProductos`: Fetches and returns the product catalog from the database.\n- `ReservarProducto`: Registers a reservation in the database.\n\n## Demo\n\nhttps://www.loom.com/share/29b49bec5a714525b76478a8aeea9d2e?sid=8545a9b8-26ed-4638-b22e-16c91114a33b\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedericog2%2Ftelegrambot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffedericog2%2Ftelegrambot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedericog2%2Ftelegrambot/lists"}