๐ปInitial structure and a simple handler
The structure of the module was described in the previous section. Now let's move on to its creation!
async def on_hello(self, bot: Client, message: Message):
await message.reply("Hello World!")from base.module import command
...
@command("hello")
async def on_hello(self, bot: Client, message: Message):
await message.reply("Hello World!")
# ะัะธะผะตั ะธัะฟะพะปัะทะพะฒะฐะฝะธั ั ัะธะปัััะพะผ
from pyrogram import filters
...
@command("start", filters.regex(r"/start \w+$"))Last updated