Metadata-Version: 2.1
Name: Abg
Version: 2.3.4
Summary: add-on for Pyrogram || Telegram bot helpers || Easy botting
Home-page: https://github.com/Abishnoi69/Abg
Author: Abishnoi
Author-email: Abishnoi69@Abg.org
License: MIT
Download-URL: https://github.com/Abishnoi69/Abg/releases/latest
Project-URL: Tracker, https://github.com/Abishnoi69/Abg/issues
Project-URL: Community, https://t.me/Abgpy
Project-URL: Source, https://github.com/Abishnoi69/Abg
Project-URL: Documentation, https://github.com/Abishnoi69/Abg/tree/master/doce
Description: <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 Abg
        ```
        #### 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("myinfo")
        Resultdef my_info(self: Client, ctx: Message):
            if not ctx.from_user:
                return
            name = await ctx.chat.ask("Type Your Name")
            age = await ctx.chat.ask("Type your age")
            add = await ctx.chat.ask("Type your address")
            # you can also use : ctx.reply_text(...)
            await self.send_msg(
                chat_id=ctx.chat.id,
                text=f"Your name is: {name.text}\nYour age is: {age.text}\nyour address is: {add.text}",
                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)
        ```
        ━━━━━━━━━━━━━━━━━━━━ 
        
        
Keywords: add-on pyrogram bots telegram bot chat messenger mtproto api client library python conversation keyboard userbot patch https
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: Implementation
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Internet
Classifier: Topic :: Communications
Classifier: Topic :: Communications :: Chat
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Requires-Python: ~=3.7
Description-Content-Type: text/markdown
