<p align="center">
<b> ABG </b>
</p>
<p align="center"><a href="https://pepy.tech/project/abg"> <img src="https://static.pepy.tech/personalized-badge/abg?period=total&units=international_system&left_color=black&right_color=black&left_text=Downloads" width="169" height="29.69"/></a></p>
### Requirements
- Python 3.7 ᴏʀ higher.
- A [ᴛᴇʟᴇɢʀᴀᴍ ᴀᴘɪ ᴋᴇʏ](https://docs.pyrogram.org/intro/setup#api-keys).
- ᴀʙɢ [ᴄᴏɴғɪɢ](https://github.com/Abishnoi69/Abg#configuratoins).
### Installing :
```bash
pip install -U git+https://github.com/Abishnoi69/Abg@dev
or
pip install -U Abg
```
### Example
- [ᴏᴘᴇɴ sᴏᴜʀᴄᴇ ᴇxᴀᴍᴘʟᴇ](https://github.com/Abishnoi69/Abg/network/dependents)
#### sᴇᴛᴜᴘ
```python
from pyrogram import filters, Client
from pyrogram.types import CallbackQuery, Message
from Abg import patch # type : ignore
from Abg.helpers import ikb
app = Client("my_account")
@app.on_cmd("start")
async def start(self: Client, ctx: Message):
await self.send_msg(
chat_id=ctx.chat.id,
text=f"ok",
reply_markup=ikb([[("ʙᴜᴛᴛᴏɴ", "hello")]]),
)
# callback
@app.on_cb("hello")
async def hello(c: Client, q: CallbackQuery):
await q.answer("Hello From Abg", show_alert=True)
app.run()
```
>
#### ᴜsᴇʀ/ʙᴏᴛ ʀɪɢʜᴛs
```python
from Abg import patch # all patch
from pyrogram.types import Message
from pyrogram import Client
app = Client("my_account")
@app.on_cmd("del", group_only=True)
@app.adminsOnly(permissions="can_delete_messages", is_both=True)
async def del_msg(c: Client, m: Message):
if m.reply_to_message:
await m.delete()
await c.delete_messages(
chat_id=m.chat.id,
message_ids=m.reply_to_message.id,
)
else:
await m.reply_text(text="ᴡʜᴀᴛ ᴅᴏ ʏᴏᴜ ᴡᴀɴɴᴀ ᴅᴇʟᴇᴛᴇ?")
return
app.run()
```
>
### keyboard's
```python
from Abg.inline import InlineKeyboard, InlineButton
keyboard = InlineKeyboard(row_width=3)
keyboard.add(
InlineButton('1', 'inline_keyboard:1'),
InlineButton('2', 'inline_keyboard:2'),
InlineButton('3', 'inline_keyboard:3'),
InlineButton('4', 'inline_keyboard:4'),
InlineButton('5', 'inline_keyboard:5'),
InlineButton('6', 'inline_keyboard:6'),
InlineButton('7', 'inline_keyboard:7')
)
```
#### ʀᴇsᴜʟᴛ
<p><img src="https://raw.githubusercontent.com/Abishnoi69/Abg/master/doce/images/add_inline_button.png" alt="add_inline_button"></p>
━━━━━━━━━━━━━━━━━━━━
### Configuratoins
```
OWNER_ID = ʏᴏᴜʀ ᴛᴇʟᴇɢʀᴀᴍ ɪᴅ.
DEV_USERS = ʙᴏᴛ ᴅᴇᴠs ɪᴅ. (ʏᴏᴜ ᴄᴀɴ ᴀᴅᴅ ᴀ ʟɪsᴛ : 1 2 3)
LOGGER_ID = ʏᴏᴜʀ ᴘʀɪᴠᴀᴛᴇ ɢʀᴏᴜᴘ/ᴄʜᴀɴɴᴇʟ ɪᴅ. (ʜᴇʀᴇ ʙᴏᴛ sᴇɴᴅ ʟᴏɢs)
```
━━━━━━━━━━━━━━━━━━━━
Raw data
{
"_id": null,
"home_page": "https://github.com/Abishnoi69/Abg",
"name": "Abg",
"maintainer": "",
"docs_url": null,
"requires_python": "~=3.7",
"maintainer_email": "",
"keywords": "add-on pyrogram bots telegram bot chat messenger mtproto api client library python conversation keyboard userbot patch https",
"author": "Abishnoi",
"author_email": "Abishnoi69@Abg.org",
"download_url": "https://files.pythonhosted.org/packages/17/89/b613741628dcff7a69236b5329baeeb6624291c120c719b5cb1b9d7feefa/Abg-2.3.8.tar.gz",
"platform": null,
"description": "<p align=\"center\">\n<b> ABG </b>\n</p>\n\n<p align=\"center\"><a href=\"https://pepy.tech/project/abg\"> <img src=\"https://static.pepy.tech/personalized-badge/abg?period=total&units=international_system&left_color=black&right_color=black&left_text=Downloads\" width=\"169\" height=\"29.69\"/></a></p>\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<p><img src=\"https://raw.githubusercontent.com/Abishnoi69/Abg/master/doce/images/add_inline_button.png\" alt=\"add_inline_button\"></p>\n\n\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\n### Configuratoins\n```\nOWNER_ID = \u028f\u1d0f\u1d1c\u0280 \u1d1b\u1d07\u029f\u1d07\u0262\u0280\u1d00\u1d0d \u026a\u1d05.\nDEV_USERS = \u0299\u1d0f\u1d1b \u1d05\u1d07\u1d20s \u026a\u1d05. (\u028f\u1d0f\u1d1c \u1d04\u1d00\u0274 \u1d00\u1d05\u1d05 \u1d00 \u029f\u026as\u1d1b : 1 2 3)\nLOGGER_ID = \u028f\u1d0f\u1d1c\u0280 \u1d18\u0280\u026a\u1d20\u1d00\u1d1b\u1d07 \u0262\u0280\u1d0f\u1d1c\u1d18/\u1d04\u029c\u1d00\u0274\u0274\u1d07\u029f \u026a\u1d05. (\u029c\u1d07\u0280\u1d07 \u0299\u1d0f\u1d1b s\u1d07\u0274\u1d05 \u029f\u1d0f\u0262s)\n```\n\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 \n\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "add-on for Pyrogram || Telegram bot helpers || Easy botting",
"version": "2.3.8",
"project_urls": {
"Community": "https://t.me/Abgpy",
"Documentation": "https://github.com/Abishnoi69/Abg/tree/master/doce",
"Download": "https://github.com/Abishnoi69/Abg/releases/latest",
"Homepage": "https://github.com/Abishnoi69/Abg",
"Source": "https://github.com/Abishnoi69/Abg",
"Tracker": "https://github.com/Abishnoi69/Abg/issues"
},
"split_keywords": [
"add-on",
"pyrogram",
"bots",
"telegram",
"bot",
"chat",
"messenger",
"mtproto",
"api",
"client",
"library",
"python",
"conversation",
"keyboard",
"userbot",
"patch",
"https"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1789b613741628dcff7a69236b5329baeeb6624291c120c719b5cb1b9d7feefa",
"md5": "6c9e1dd2b084bfb30cf6648aa33f82fb",
"sha256": "260decd1dd2808452057c319d7949da6dc12d17ff6e335888e3e09571d20e08b"
},
"downloads": -1,
"filename": "Abg-2.3.8.tar.gz",
"has_sig": false,
"md5_digest": "6c9e1dd2b084bfb30cf6648aa33f82fb",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.7",
"size": 24884,
"upload_time": "2024-02-17T03:25:48",
"upload_time_iso_8601": "2024-02-17T03:25:48.531926Z",
"url": "https://files.pythonhosted.org/packages/17/89/b613741628dcff7a69236b5329baeeb6624291c120c719b5cb1b9d7feefa/Abg-2.3.8.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-17 03:25:48",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Abishnoi69",
"github_project": "Abg",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "abg"
}