Skip to main content

pyrogram helpers / add-on for pyrogram

Project description

ᴀʙɢ-ᴘʏʀᴏ :->

sᴛᴀʀᴛ ᴀsᴋ-ᴄʟɪᴇɴᴛ ᴡɪᴛʜ @ᴀᴘᴘ [ᴘʏʀᴏɢʀᴀᴍ ᴄʟɪᴇɴᴛ]

• Conversation in pyrogram

  from Abg.conversation import Askclient
  from pyrogram import Client, filters
  
  app = Client("my_account")
  read = Askclient(app)

  @app.on_message(filters.command("start"))
  async def start(c: app, m: Message):
    answer = await read.ask(m, text)
    if answer.text:
     print(answer.text)
    await answer.reply("ɪ ɢᴏᴛ ᴀɴsᴡᴇʀ..")

  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 :->

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

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Abg-1.2.tar.gz (16.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page