{"id":29635048,"url":"https://github.com/mscbuild/telegram-bot-examples","last_synced_at":"2025-07-21T16:09:28.949Z","repository":{"id":304174158,"uuid":"1017992128","full_name":"mscbuild/Telegram-bot-examples","owner":"mscbuild","description":"Telegram bot examples. The examples in this folder are small bots meant to show you how a bot that is written with python-telegram-bot looks like.","archived":false,"fork":false,"pushed_at":"2025-07-11T14:12:03.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-11T15:27:07.878Z","etag":null,"topics":["api","development","email-sender","example","finance","python","task","telegram","telegrambot"],"latest_commit_sha":null,"homepage":"","language":"Python","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/mscbuild.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-11T12:28:03.000Z","updated_at":"2025-07-11T14:12:06.000Z","dependencies_parsed_at":"2025-07-11T15:39:07.765Z","dependency_job_id":null,"html_url":"https://github.com/mscbuild/Telegram-bot-examples","commit_stats":null,"previous_names":["mscbuild/telegram-bot-examples"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/mscbuild/Telegram-bot-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mscbuild%2FTelegram-bot-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mscbuild%2FTelegram-bot-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mscbuild%2FTelegram-bot-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mscbuild%2FTelegram-bot-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mscbuild","download_url":"https://codeload.github.com/mscbuild/Telegram-bot-examples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mscbuild%2FTelegram-bot-examples/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266332673,"owners_count":23912663,"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-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["api","development","email-sender","example","finance","python","task","telegram","telegrambot"],"created_at":"2025-07-21T16:09:28.214Z","updated_at":"2025-07-21T16:09:28.935Z","avatar_url":"https://github.com/mscbuild.png","language":"Python","readme":"# Telegram-bot-examples python\n ![](https://komarev.com/ghpvc/?username=mscbuild) \n ![](https://img.shields.io/github/license/mscbuild/Telegram-bot-examples) \n ![](https://img.shields.io/badge/PRs-Welcome-green)\n ![](https://img.shields.io/github/languages/code-size/mscbuild/Telegram-bot-examples)\n![](https://img.shields.io/badge/code%20style-python-green)\n![](https://img.shields.io/github/stars/mscbuild)\n![](https://img.shields.io/badge/Topic-Github-lighred)\n![](https://img.shields.io/website?url=https%3A%2F%2Fgithub.com%2Fmscbuild)\n\n\nThis repository contains example Python scripts for building Telegram bots using the `python-telegram-bot` library. These examples demonstrate various functionalities, such as responding to messages, handling commands, and integrating with Telegram's API.\n\n## Table of Contents\n\n- [Prerequisites](#prerequisites)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Examples](#examples)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Prerequisites\n- Python 3.8 or higher\n- A Telegram account and a bot token from [BotFather](https://t.me/BotFather)\n- Basic knowledge of Python and Telegram's Bot API\n\n## Installation\n1. **Clone the repository**:\n   ```bash\n   git clone https://github.com/mscbuild/Telegram-bot-examples.git\n   cd Telegram-bot-examples\n   ```\n\n2. **Create a virtual environment** (optional but recommended):\n   ```bash\n   python -m venv venv\n   source venv/bin/activate  # On Windows: venv\\Scripts\\activate\n   ```\n\n3. **Install dependencies**:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. **Set up your bot token**:\n   - Create a `.env` file in the project root.\n   - Add your bot token:\n     ```env\n     TELEGRAM_BOT_TOKEN=your-bot-token-here\n     ```\n\n## Usage\n1. Ensure your environment is activated and dependencies are installed.\n2. Run any example script:\n   ```bash\n   python examples/echo_bot.py\n   ```\n3. Interact with your bot on Telegram by sending commands or messages as described in each example.\n\n## Examples\nThe `examples/` directory contains the following scripts:\n- **`echobot.py`**: A simple bot that echoes back any text message it receives.\n- **`task.py`**: A Telegram bot for assigning tasks.\n- **`email.py`**: This bot is an email client that works right inside Telegram.\n- **`finances.py`**:  This bot that allows you to keep track of finances.\n- **`chatbot.py`**:  The free chatbot by AI .\n  \nEach script includes comments explaining the code and its functionality. To run an example, ensure your bot token is set in the `.env` file, then execute the script.\n\n## Contributing\nContributions are welcome! To contribute:\n1. Fork the repository.\n2. Create a new branch.\n3. Make your changes and commit.\n4. Push to the branch.\n5. Open a pull request.\n\nPlease ensure your code follows PEP 8 style guidelines and includes appropriate comments.\n\n## License\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmscbuild%2Ftelegram-bot-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmscbuild%2Ftelegram-bot-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmscbuild%2Ftelegram-bot-examples/lists"}