From 61cdc17abdcfebcc1b60bd2b0bfc002a367def66 Mon Sep 17 00:00:00 2001 From: nin0dev Date: Fri, 19 Jul 2024 12:23:19 -0400 Subject: [PATCH] Added minky --- .gitignore | 2 +- main.py | 20 +++++++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 1d9351d..c7dc933 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ .env .venv -*.session \ No newline at end of file +*.session* \ No newline at end of file diff --git a/main.py b/main.py index eb60408..4f90c74 100644 --- a/main.py +++ b/main.py @@ -1,4 +1,6 @@ -from pyrogram import Client +import time +import pyrogram +from pyrogram import Client, filters, enums, types from dotenv import load_dotenv import os @@ -11,4 +13,20 @@ app = Client( ) + +@app.on_message(filters.command(["help"], prefixes="v")) +async def help(client, message: types.Message): + await message.reply(""" + +v**help** (h) - Send this +v**minky** (mink, minker) - minker + """, parse_mode=enums.ParseMode.MARKDOWN) + +#region Fun +@app.on_message(filters.command(["minky", "mink", "minker"], prefixes="v")) +async def minky(client, message: types.Message): + await message.reply_chat_action(enums.ChatAction.UPLOAD_PHOTO) + await message.reply_photo(f"https://minky.materii.dev?{time.time()}") +#endregion + app.run() \ No newline at end of file