{"id":15583205,"url":"https://github.com/ashokshau/abg","last_synced_at":"2025-08-24T11:33:58.546Z","repository":{"id":177245637,"uuid":"656228033","full_name":"AshokShau/Abg","owner":"AshokShau","description":"ABG || Telegram bot helper ||  Add-on for Pyrogram || Easy Botting","archived":false,"fork":false,"pushed_at":"2025-01-07T10:13:49.000Z","size":449,"stargazers_count":16,"open_issues_count":0,"forks_count":11,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-09T03:16:10.623Z","etag":null,"topics":["abg","addon","api","bot","bots","easy-to-use","helper","hydrogram","patch","pykeybord","pyrogram","pyromod","telegram","telegram-bot","tg","tgbot"],"latest_commit_sha":null,"homepage":"https://t.me/GuardxSupport","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/AshokShau.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-20T14:06:13.000Z","updated_at":"2025-04-09T10:25:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"c3faf64b-b9d1-493c-b557-7472a2c82b9f","html_url":"https://github.com/AshokShau/Abg","commit_stats":{"total_commits":223,"total_committers":6,"mean_commits":"37.166666666666664","dds":0.06726457399103136,"last_synced_commit":"abe9f3c5e238fd10cb763b95f73262b93c0996b2"},"previous_names":["abishnoi69/abg","ashokshau/abg"],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshokShau%2FAbg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshokShau%2FAbg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshokShau%2FAbg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshokShau%2FAbg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AshokShau","download_url":"https://codeload.github.com/AshokShau/Abg/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253181441,"owners_count":21866994,"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":["abg","addon","api","bot","bots","easy-to-use","helper","hydrogram","patch","pykeybord","pyrogram","pyromod","telegram","telegram-bot","tg","tgbot"],"created_at":"2024-10-02T20:05:37.053Z","updated_at":"2025-05-09T03:16:17.835Z","avatar_url":"https://github.com/AshokShau.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cb\u003e ABG \u003c/b\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003ca href=\"https://pepy.tech/project/abg\"\u003e \u003cimg src=\"https://static.pepy.tech/personalized-badge/abg?period=total\u0026units=international_system\u0026left_color=black\u0026right_color=black\u0026left_text=Downloads\" width=\"169\" height=\"29.69\" alt=\"Downloads\"/\u003e\u003c/a\u003e\u003c/p\u003e\n\n### Requirements \n\n- Python 3.8 ᴏʀ higher.\n- hydrogram 0.0.1 ᴏʀ higher.\n\n### Installing :\n\u003e **Note**: If you are using Hydrogram, avoid installing Pyrogram or its forks to prevent potential conflicts.\n\n```bash\npip install -U Abg # For Pyrogram or Pyrogram Forks\n```\n\n```bash\npip install -U Abg[hydrogram] # For Hydrogram\n```\n```bash\npip install -U Abg[pyrofork] # for pyrofork\n```\n\n\n### Getting Started\n```python\nfrom hydrogram import Client\nfrom hydrogram.types import CallbackQuery, Message\n\nfrom Abg import *  # type: ignore\nfrom hydrogram.helpers import ikb\n\napp = Client(\n    name='Abg',\n    api_id=6,\n    api_hash='eb06d4abfb49dc3eeb1aeb98ae0f581e',\n    bot_token=\"TOKEN\",\n    in_memory=True,\n)\n\n\n@app.on_cmd(\"start\")\nasync def start(self: Client, ctx: Message):\n    await ctx.reply_text(\"Hello World\", reply_markup=ikb([[(\"Hello\", \"hello\")]]))\n\n\n@app.on_cb(\"hello\")\nasync def hello(_: Client, q: CallbackQuery):\n    await q.answer(\"Hello From Abg\", show_alert=True)\n\n\napp.run()\n\n```\n\n#### Permissions Check for Admins\n```python\nfrom Abg import *  # type: ignore # (all patch)\nfrom hydrogram.types import Message\nfrom hydrogram import Client\n\napp = Client(\"my_account\")\n\n@app.on_cmd(\"del\", group_only=True)\n@adminsOnly(\n    self=app,\n    permissions=\"can_delete_messages\",\n    is_both=True,\n) # also you can use like this @app.adminsOnly(permissions=\"can_delete_messages\", is_both=True)\nasync def del_msg(self: Client, m: Message):\n    if m.reply_to_message:\n        await m.delete()\n        await self.delete_messages(\n            chat_id=m.chat.id,\n            message_ids=m.reply_to_message.id,\n        )\n    else:\n        await m.reply_text(text=\"Reply to a message to delete it\")\n  \napp.run()\n```\n\n\n\u003e\n#### keyboard's\n\n```python\nfrom Abg.patch.inline import InlineKeyboard, InlineButton\n\nkeyboard = InlineKeyboard(row_width=3)\nkeyboard.add(\n    InlineButton('1', 'inline_keyboard:1'),\n    InlineButton('2', 'inline_keyboard:2'),\n    InlineButton('3', 'inline_keyboard:3'),\n    InlineButton('4', 'inline_keyboard:4'),\n    InlineButton('5', 'inline_keyboard:5'),\n    InlineButton('6', 'inline_keyboard:6'),\n    InlineButton('7', 'inline_keyboard:7')\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashokshau%2Fabg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashokshau%2Fabg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashokshau%2Fabg/lists"}