{ "info": { "author": "Abishnoi", "author_email": "Abishnoi69@Abg.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: Implementation", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Communications", "Topic :: Communications :: Chat", "Topic :: Internet", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Application Frameworks", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "
\n ABG \n
\n\n\n\n### Requirements \n\n- Python 3.7 \u1d0f\u0280 higher.\n- A [\u1d1b\u1d07\u029f\u1d07\u0262\u0280\u1d00\u1d0d \u1d00\u1d18\u026a \u1d0b\u1d07\u028f](https://docs.pyrogram.org/intro/setup#api-keys).\n- \u1d00\u0299\u0262 [\u1d04\u1d0f\u0274\u0493\u026a\u0262](https://github.com/Abishnoi69/Abg#configuratoins).\n\n### Installing :\n\n```bash\npip install -U git+https://github.com/Abishnoi69/Abg@dev\nor\npip install -U Abg\n```\n\n### Example\n- [\u1d0f\u1d18\u1d07\u0274 s\u1d0f\u1d1c\u0280\u1d04\u1d07 \u1d07x\u1d00\u1d0d\u1d18\u029f\u1d07](https://github.com/Abishnoi69/Abg/network/dependents)\n\n\n#### s\u1d07\u1d1b\u1d1c\u1d18\n```python\nfrom pyrogram import filters, Client\nfrom pyrogram.types import CallbackQuery, Message\nfrom Abg import patch # type : ignore\nfrom Abg.helpers import ikb\n\napp = Client(\"my_account\")\n\n@app.on_cmd(\"start\")\nasync def start(self: Client, ctx: Message):\n await self.send_msg(\n chat_id=ctx.chat.id,\n text=f\"ok\",\n reply_markup=ikb([[(\"\u0299\u1d1c\u1d1b\u1d1b\u1d0f\u0274\", \"hello\")]]),\n )\n\n# callback \n@app.on_cb(\"hello\")\nasync def hello(c: Client, q: CallbackQuery):\n await q.answer(\"Hello From Abg\", show_alert=True)\n\n app.run()\n```\n>\n#### \u1d1cs\u1d07\u0280/\u0299\u1d0f\u1d1b \u0280\u026a\u0262\u029c\u1d1bs \n\n```python\nfrom Abg import patch # all patch\nfrom pyrogram.types import Message\nfrom pyrogram import Client\n\napp = Client(\"my_account\")\n\n@app.on_cmd(\"del\", group_only=True)\n@app.adminsOnly(permissions=\"can_delete_messages\", is_both=True)\nasync def del_msg(c: Client, m: Message):\n if m.reply_to_message:\n await m.delete()\n await c.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=\"\u1d21\u029c\u1d00\u1d1b \u1d05\u1d0f \u028f\u1d0f\u1d1c \u1d21\u1d00\u0274\u0274\u1d00 \u1d05\u1d07\u029f\u1d07\u1d1b\u1d07?\")\n return\n \n app.run()\n```\n\n\n>\n### keyboard's\n\n```python\nfrom Abg.inline import InlineKeyboard, InlineButton\n\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\n#### \u0280\u1d07s\u1d1c\u029f\u1d1b\n\n