An advanced monkeypatcher add-on for Pyrogram.

Overview

Pyropatch

An advanced monkeypatcher add-on for Pyrogram

Installation

Install pyropatch with pip

  pip install pyropatch

Usage/Examples

All patches

  • Command Handler
  • Flood Handler
  • Listen
from pyropatch import pyropatch                    #apply all patches
from pyrogram import Client

app = Client(...)

Command Handler

from pyropatch import command_handler                   #apply command handler
from pyrogram import Client

app = Client(...)

#pass info along with commands in command filter
@app.on_message(filters.command(commands='start',info='Check Bot is Alive'))

# to set bot commands from the command available on bot
app.auto_set_commands()

# to get all the commands available in bot
app.commands

Flood Handler

from pyropatch import flood_handler                   #apply flood handler
from pyrogram import Client

app = Client(...)

# all floodwaits will automatically handled
app.send_message("me", "Flood handled with **Pyropatch**!")

Listen

from pyropatch import listen                   #apply listen
from pyrogram import Client

app = Client(...)
# listen for a message in a particular chat
m = app.listen_message(chat_id=chat_id, filters=filters, timeout=timeout)

# listen for a callback data in a particular message
u = app.listen_callback(chat_id=chat_id, message_id=message_id, filters=filters, timeout=timeout)
u = app.listen_callback(inline_message_id=inline_message_id, filters=filters, timout=timeout)

# listen for an inline query 
u = app.listen_inline_query(user_id=user_id, filters=filters, timeout=timeout)

# listen for an inline result 
u = app.listen_inline_result(user_id=user_id, filters=filters, timeout=timeout)

More Comming Soon

Special thanks to Pyromod
You might also like...

• SpamX is A pyrogram Based Spam bots for telegram With Many Features -!

• SpamX is A pyrogram Based Spam bots for telegram With Many Features -!

• SᴘᴀᴍX • SpamX Is A Pyrogram Based Spam Bots For Telegram With Many Features Features ° Fast And Stable Deploy Upto 20 Clients Spam | pornspam | Dm S

Sep 21, 2022

A step handler library for pyrogram framework.

Pyrostep A step handler library for pyrogram framework. Helps you to step handling ... I tried to provide the best speed ... Installing Usage set_step

Sep 17, 2022

PyroKar-Usebot a userbot with pyrogram and python. Powered by PyroMan-Userbot

PyroKar-Userbot Telegram PyroKar-Userbot adalah userbot Telegram modular yang berjalan di Python3 dengan Library Pyrogram. Saya membuat repository ini

Jul 4, 2022

Sebuah Telegram userbot yang berjalan di Python Pyrogram untuk bersenang-senang dan untuk kegiatan serius di Telegram.

Sebuah Telegram userbot yang berjalan di Python Pyrogram untuk bersenang-senang dan untuk kegiatan serius di Telegram.

🔥 GALON-USERBOT 🔥 Telah hadir, Galon-Userbot! Sebuah Telegram userbot yang berjalan di Python Pyrogram untuk bersenang-senang dan untuk kegiatan ser

Jul 6, 2022

A Simple Group Manager Bot using Pyrogram, Telethon. Specially This is working with firebase database

A Simple Group Manager Bot using Pyrogram, Telethon. Specially This is working with firebase database

🌷 Miss Raya 🌷 A Simple Group Manager Bot using Pyrogram, Telethon. Specially This is working with firebase database. Deploy Easy Method Hard Method

Jun 19, 2022

Anime Themed Telegram Group Management Bot written in python using pyrogram, telethon and PTB.

Anime Themed Telegram Group Management Bot written in python using pyrogram, telethon and PTB.

Himawari An advanced scary looking :p telegram botto running on python3 with sqlalchemy, Redis, mongodb database. Reach out support at Tech Division,

Sep 17, 2022

pyrogram and telethon string session generator bot 🚀

pyrogram and telethon string session generator bot 🚀

sᴛʀɪɴɢ ɢᴇɴᴇʀᴀᴛᴏʀ ʙᴏᴛ 🥵 🛠️ ʟᴀɴɢᴜᴀɢᴇs ᴀɴᴅ ᴛᴏᴏʟs 🤤 ғᴇᴀᴛᴜʀᴇs [»] sᴜᴩᴩᴏʀᴛs ᴩʏʀᴏɢʀᴀᴍ ᴠ2 🔥 [»] sᴀғᴇsᴛ ʙᴏᴛ ᴇᴠᴇʀ 🔥 [»] sᴜᴩᴩᴏʀᴛs ᴩʏʀᴏɢʀᴀᴍ ᴀɴᴅ ᴛᴇʟᴇᴛʜᴏɴ 🔥 [

Aug 9, 2022

pyrogram and telethon string session generator bot 🚀

pyrogram and telethon string session generator bot 🚀

sᴛʀɪɴɢ ɢᴇɴᴇʀᴀᴛᴏʀ ʙᴏᴛ 🥵 🛠️ ʟᴀɴɢᴜᴀɢᴇs ᴀɴᴅ ᴛᴏᴏʟs 🤤 ғᴇᴀᴛᴜʀᴇs [»] sᴜᴩᴩᴏʀᴛs ᴩʏʀᴏɢʀᴀᴍ ᴠ2 🔥 [»] sᴀғᴇsᴛ ʙᴏᴛ ᴇᴠᴇʀ 🔥 [»] sᴜᴩᴩᴏʀᴛs ᴩʏʀᴏɢʀᴀᴍ ᴀɴᴅ ᴛᴇʟᴇᴛʜᴏɴ 🔥 [

Aug 9, 2022

A Super Fast and Powerful Telegram bot for streaming music on telegram videochats, Powered by PyTgCalls and Pyrogram

A Super Fast and Powerful Telegram bot for streaming music on telegram videochats, Powered by PyTgCalls and Pyrogram

─────「 ✨ ғᴀʟʟᴇɴ ✘ ᴍᴜsɪᴄ ✨ 」───── ᴛʜᴇ ᴍᴏsᴛ ғᴀsᴛ ᴀɴᴅ ᴩᴏᴡᴇʀғᴜʟ ᴍᴜsɪᴄ ᴩʟᴀʏᴇʀ ʙᴏᴛ ━━━━━━━━━━━━━━━━━━━━ ━━━━━━━━━━━━━━━━━━━━ 𝗗𝗘𝗣𝗟𝗢𝗬𝗠𝗘𝗡𝗧 𝗠𝗘𝗧𝗛𝗢

Aug 11, 2022
Blender Add-on for Pose and Animation Library management. This add-on will allow you to store and reuse poses and animations from one blender file to another.

GAOLIB GAOLIB Copyright (C) 2022 GAO SHAN PICTURES is a GAO SHAN PICTURES Blender add-on developped to manage a library of poses and animations. This

GAO SHAN PICTURES 17 Sep 19, 2022
The Best Telegram UserBot Made With Pyrogram [Python]

Asterix UserBot A Powerful Telegram userbot based on Pyrogram. How To Deploy Asterix Heroku Railway Qovery Termux Tutorial Railway Deploy Comming Soon

TeamAsterix 10 Aug 8, 2022
A First Telegram Userbot Project With Multi Client Based On PyroGram.

???????? ?????????????? ?? A First Telegram Userbot Project With Multi Clients Based On PyroGram ???????? ?????????? ʀᴇQᴜɪʀᴇᴍᴇɴᴛꜱ ?? PyroGram Session

Zaid 45 Sep 25, 2022
An advance telegram giveaway bot based on pyrogram with mongo database.powered by mafia

Mafia Giveaway Bot An advance telegram giveaway bot based on pyrogram with mongo database.powered by mafia. ??‍?? Dᴇᴠᴇʟᴏᴘᴇʀ : @supunma Features ?? For

szsupunma 16 Aug 5, 2022
Telegram Group Calls Streaming bot with some useful features, written in Python with Pyrogram and Py-Tgcalls.

Telegram Group Calls Streaming bot with some useful features, written in Python with Pyrogram and Py-Tgcalls. Supporting platforms like Youtube, Spotify, Resso, AppleMusic, Soundcloud and M3u8 Links.

Cute Inspire 11 Aug 10, 2022
Simple and Powerful Telegram's AFK Bot written in Pyrogram using MongoDB

First ever pyrogram based public sourced AFK Bot on Telegram and Github. Ready-To-Use Bot • Support Channel • Support Chat Yukki AFK Bot A Powerful Te

Team Yukki 26 Sep 13, 2022
This is UserBot Telegram with many cool modules. Written in Python with Pyrogram.

PyroMan-Userbot Telegram PyroMan-Userbot adalah userbot Telegram modular yang berjalan di Python3 dengan Library Pyrogram. Saya membuat repository ini

null 41 Sep 28, 2022
A Super Fast and Powerful Telegram bot for streaming music on telegram videochats, Powered by PyTgCalls and Pyrogram !!

?? ?????? ?????????? ??.?? ✨ ??️ Requirements FFmpeg NodeJS nodesource.com Python 3.7 or higher PyTgCalls ?? Features Yt-dL Fix Updated Plug-in Super

Unknown Mortal 10 Sep 16, 2022
A First Telegram Userbot Project With Multi Client Based On PyroGram. All Credit Goes To Zaid-Userbot.

???? ?????????????? ?? A First Telegram Userbot Project With Multi Clients Based On PyroGram ???????? ?????????? ʀᴇQᴜɪʀᴇᴍᴇɴᴛꜱ ?? PyroGram Session Dumm

NitricXd 5 Aug 11, 2022
Powerful Tool works on 50 telegram account based on mongo-db client Powered By Pyrogram !!

⚠️ Inflex M8N Toolkit ??️ REPO STATS ?? Requirements PyroGram Session Fake telegram accounts Python 3.8+ or 3.7 Mongo Db ?? DEPLOYMENT For a safe depl

Unknown Mortal 4 Sep 21, 2022