Skip to main content

ᴀʙɢ-ᴘʏʀᴏ :->

• Conversation in pyrogram

from pyrogram import filters, Client
from pyrogram.types import Message
from Abg import patch  # type : ignore

app = Client("my_account")

@app.on_message(filters.command(["myinto"]))
async def 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("Tyoe your age")
    add = await ctx.chat.ask("Type your address")
    await app.send_msg(
        ctx.chat.id,
        f"Your name is: {name.text}\nYour age is: {age.text}\nyour address is: {add.text}",
    )

  app.run()

• User Rights

from Abg.chat_status import adminsOnly
from pyrogram import filters
from pyrogram.enums import ChatType
from pyrogram.types import Message
from pyrogram import Client

app = Client("my_account")

@app.on_message(filters.command("del"))
@adminsOnly("can_delete_messages")
async def del_msg(c: Client, m: Message):
    if m.chat.type != ChatType.SUPERGROUP:
        return

    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()

• Keyboards

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')
)

Result

add_inline_button

ɪɴsᴛᴀʟʟɪɴɢ :->

pip3 install Abg

- ᴄᴏɴᴠᴇʀsᴀᴛɪᴏɴ ɪɴ ᴘʏʀᴏɢʀᴀᴍ :->

- ᴡɪᴋɪ / ʜᴏᴡ ᴛᴏ ᴜsᴇ :->

- ᴇxᴀᴍᴘʟᴇ :->

- ᴛᴇʟᴇɢʀᴀᴍ ɢʀᴏᴜᴘ :->

━━━━━━━━━━━━━━━━━━━━

ɴᴏᴛᴇ :->

  • This library is made for my personal Project so don't take it deeply [you can use this 24*7 running ]
  • My Project @AbgRobot / @Exon_Robot & @ExonMusicBot
  • ᴇɴᴊᴏʏ ʙᴀʙʏ ♡

━━━━━━━━━━━━━━━━━━━━

- ᴄʀᴇᴅɪᴛs :->

➥ [𝐀𝖻𝗂𝗌𝗁𝗇𝗈𝗂] ↬

➥ [𝐏ʏʀᴏɢʀᴀᴍ] ↬

➥ [𝐒ᴘɪᴅᴇʀ] ↬
━━━━━━━━━━━━━━━━━━━━

Release files for Abg 1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Abg 1.3
File Size Uploaded
Abg-1.3.tar.gz 21.4 kB Details

Release files / Abg-1.3.tar.gz

Download URL Abg-1.3.tar.gz
Size 21.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e8afb2cb75e68ff5e2e94182a609a636566c0e9f6a880c7b14482791a1af85b4
BLAKE2b-256 checksum
How to use checksums
a2fe3bf292bafbcec66838d5623269724031d8a757da11b09aaf5763c79c8ea6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.2

Release history Release notifications | RSS feed

2.5.3

1 release file

2.5.2

1 release file

2.5.1

1 release file

2.5

1 release file

2.4

1 release file

2.3.9

1 release file

2.3.8

1 release file

2.3.6

1 release file

2.3.5

1 release file

2.3.4

1 release file

2.3.3

1 release file

2.3.2

1 release file

2.3.1

1 release file

2.3

1 release file

2.2

1 release file

2.1

1 release file

2.0

1 release file

1.9.2

1 release file

This release

1.3 This release

1 release file

1.2

1 release file

1.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page