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
ɪɴsᴛᴀʟʟɪɴɢ :->
pip3 install Abg
━━━━━━━━━━━━━━━━━━━━
ɴᴏᴛᴇ :->
- 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
- ᴇɴᴊᴏʏ ʙᴀʙʏ ♡
━━━━━━━━━━━━━━━━━━━━
Project details
Release history Release notifications | RSS feed
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)