{"id":18418005,"url":"https://github.com/kalanakt/pyrogram-telegram-bot-template","last_synced_at":"2025-06-23T01:08:46.406Z","repository":{"id":43919041,"uuid":"511658664","full_name":"kalanakt/Pyrogram-Telegram-Bot-Template","owner":"kalanakt","description":"A pyrogram telegram bot Template with database","archived":false,"fork":false,"pushed_at":"2024-06-01T06:06:56.000Z","size":556,"stargazers_count":35,"open_issues_count":0,"forks_count":14,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T12:48:38.109Z","etag":null,"topics":["bot","bot-template","database","easy-to-use","mongodb","pyrogram","pyrogram-bot","pyrogram-library","pyrogram-telegram-bot","telegram","telegram-bot","template"],"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/kalanakt.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}},"created_at":"2022-07-07T19:59:56.000Z","updated_at":"2025-02-20T19:44:35.000Z","dependencies_parsed_at":"2023-11-16T05:23:41.246Z","dependency_job_id":"87929c36-5a21-41c7-bb8f-6ff7e4b67a1a","html_url":"https://github.com/kalanakt/Pyrogram-Telegram-Bot-Template","commit_stats":null,"previous_names":[],"tags_count":1,"template":true,"template_full_name":null,"purl":"pkg:github/kalanakt/Pyrogram-Telegram-Bot-Template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalanakt%2FPyrogram-Telegram-Bot-Template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalanakt%2FPyrogram-Telegram-Bot-Template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalanakt%2FPyrogram-Telegram-Bot-Template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalanakt%2FPyrogram-Telegram-Bot-Template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kalanakt","download_url":"https://codeload.github.com/kalanakt/Pyrogram-Telegram-Bot-Template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalanakt%2FPyrogram-Telegram-Bot-Template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261392182,"owners_count":23151719,"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","bot-template","database","easy-to-use","mongodb","pyrogram","pyrogram-bot","pyrogram-library","pyrogram-telegram-bot","telegram","telegram-bot","template"],"created_at":"2024-11-06T04:12:28.854Z","updated_at":"2025-06-23T01:08:41.388Z","avatar_url":"https://github.com/kalanakt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pyrogram Telegram Python Bot Template\n\nThis is a template for creating Telegram bots using Pyrogram, MongoDB, and Python.\n\n## Getting Started\n\n### Prerequisites\n\n- Python 3.7 or higher\n- Pyrogram library\n- MongoDB\n\n### Installing\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/kalanakt/Pyrogram-Telegram-Bot-Template telegrambot\n   cd telegrambot\n   ```\n\n2. Install the dependencies:\n\n   \n   ```bash\n   #optional\n   python3 -m venv env\n   source env/bin/activate # in mac OS\n   env/Scripts/activate.bat #In CMD\n   env/Scripts/Activate.ps1 #In Powershel\n   ```\n\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. Set up your MongoDB database and get the connection URI.\n\n5. Create a `.env` file in the project root and add your MongoDB connection URI and your Telegram bot token:\n\n   ```plaintext\n   DATABASE_URI=your-mongodb-connection-uri\n   DATABASE_NAME=your-database-name\n   API_ID=your-api-id\n   API_HASH=your-api-hash\n   BOT_TOKEN=your-bot-token\n   ```\n\n6. Run the bot:\n\n   ```bash\n   python bot.py\n   ```\n\n## Features\n\n- Pyrogram framework for interacting with the Telegram API.\n- MongoDB for storing data.\n- Easily extendable for adding more features.\n\n## Contributing\n\nContributions are welcome! Please follow the standard guidelines when contributing.\n\n## License\n\nThis project is licensed under the MIT [License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkalanakt%2Fpyrogram-telegram-bot-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkalanakt%2Fpyrogram-telegram-bot-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkalanakt%2Fpyrogram-telegram-bot-template/lists"}