{"id":31846996,"url":"https://github.com/x7007x/telebotplugins","last_synced_at":"2026-06-11T07:31:10.828Z","repository":{"id":280456664,"uuid":"942062894","full_name":"x7007x/TelebotPlugins","owner":"x7007x","description":"A simple plugin system for pyTelegramBotAPI (telebot) that allows you to organize your bot's functionality into separate plugin files without having to redefine the bot instance in each file.","archived":false,"fork":false,"pushed_at":"2025-03-29T14:04:41.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-16T15:53:03.714Z","etag":null,"topics":["pypi-package","python","python3","telegram","telegram-bots"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/telebot-plugins/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/x7007x.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-03-03T14:10:36.000Z","updated_at":"2025-03-29T14:04:44.000Z","dependencies_parsed_at":"2025-03-04T04:15:47.277Z","dependency_job_id":null,"html_url":"https://github.com/x7007x/TelebotPlugins","commit_stats":null,"previous_names":["x7007x/telebotplugins","x7007x/telebot-plugins"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/x7007x/TelebotPlugins","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x7007x%2FTelebotPlugins","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x7007x%2FTelebotPlugins/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x7007x%2FTelebotPlugins/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x7007x%2FTelebotPlugins/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/x7007x","download_url":"https://codeload.github.com/x7007x/TelebotPlugins/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x7007x%2FTelebotPlugins/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010954,"owners_count":26084837,"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-12T02:00:06.719Z","response_time":53,"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":["pypi-package","python","python3","telegram","telegram-bots"],"created_at":"2025-10-12T09:18:27.368Z","updated_at":"2025-10-12T09:18:28.293Z","avatar_url":"https://github.com/x7007x.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TeleBot Plugins\n\nA simple plugin system for pyTelegramBotAPI (telebot) that allows you to organize your bot's functionality into separate plugin files without having to redefine the bot instance in each file.\n\n## Features\n\n- Load plugins from a specified directory\n- Support for both synchronous and asynchronous telebot\n- Handle relative paths properly\n- Automatically register the bot instance globally\n- Support for webhook and polling modes\n\n## Installation\n\n```bash\npip install telebot-plugins\n```\n\n## Usage\n\n### Basic Example\n\n```python\nfrom telebot import TeleBot\nfrom telebot_plugins import TelebotWithPlugins\n\n# Create a bot instance\nAPI_TOKEN = \"YOUR_BOT_TOKEN\"\nbot = TeleBot(API_TOKEN)\n\n# Initialize TelebotWithPlugins\nplugins = TelebotWithPlugins(\n    bot=bot,\n    plugins=\"plugins\",  # plugins folder name\n    exclude=[\"disabled_plugin.py\"]  # files to exclude (optional)\n)\n\nif __name__ == '__main__':\n    # Start the bot\n    bot.polling()\n```\n\n### Example Plugin File (plugins/example.py)\n\n```python\nfrom telebot import bot  # The bot is automatically available\n\n@bot.message_handler(commands=['start'])\ndef send_welcome(message):\n    bot.reply_to(message, \"Hello! This is a plugin example.\")\n```\n\n### Async Bot Example\n\n```python\nfrom telebot.async_telebot import AsyncTeleBot\nfrom telebot_plugins import TelebotWithPlugins\nimport asyncio\n\n# Create an async bot instance\nAPI_TOKEN = \"YOUR_BOT_TOKEN\"\nbot = AsyncTeleBot(API_TOKEN)\n\n# Initialize TelebotWithPlugins\nplugins = TelebotWithPlugins(\n    bot=bot,\n    plugins=\"plugins\"\n)\n\nif __name__ == '__main__':\n    # Start the async bot\n    asyncio.run(bot.polling())\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx7007x%2Ftelebotplugins","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fx7007x%2Ftelebotplugins","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx7007x%2Ftelebotplugins/lists"}