Added minky
This commit is contained in:
parent
5128f2904e
commit
61cdc17abd
2 changed files with 20 additions and 2 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,3 +1,3 @@
|
||||||
.env
|
.env
|
||||||
.venv
|
.venv
|
||||||
*.session
|
*.session*
|
20
main.py
20
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
|
from dotenv import load_dotenv
|
||||||
import os
|
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()
|
app.run()
|
Loading…
Reference in a new issue