-
Notifications
You must be signed in to change notification settings - Fork 539
Expand file tree
/
Copy pathgenerals.py
More file actions
55 lines (39 loc) · 1.88 KB
/
generals.py
File metadata and controls
55 lines (39 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Copyright (c) 2021 - Present partiallywritten
# Author: https://github.com/partiallywritten
# Project: https://github.com/partiallywritten/Mega.nz-Bot
# Description: General commands of the bot
from pyrogram import filters
from pyrogram.types import Message
from megadl import CypherClient
@CypherClient.on_message(filters.command("start"))
@CypherClient.run_checks
async def start_msg(_: CypherClient, msg: Message):
await msg.reply_text(
f"""
Hi `{msg.from_user.first_name}` 👋, I'm [Mega.nz-Bot](https://github.com/partiallywritten/Mega.nz-Bot)!
I can help you download, upload files or folders from telegram.
Not sure what to do? Check /help for more info 😇
**Made with ❤️ by @NexaBotsUpdates**
""",
disable_web_page_preview=True,
)
@CypherClient.on_message(filters.command("help"))
@CypherClient.run_checks
async def help_msg(_: CypherClient, msg: Message):
await msg.reply_text(
f"""
**✘ How do I login?**
⤷ Send /login command and enter your details when I ask you. Don't worry we encrypt your data before sending it anywhere 🤗
**✘ How to download from mega link?**
⤷ It's very easy. Just send the link you want to download and I'll download it for you 😉.
⤷ For private content you need to login first then send path to the file or folder you want to download starting with `/Root/<path-to-dl>`.
**✘ How to upload files to Mega.nz?**
⤷ Just send me the files and I'll ask you whether you want to upload it or not. Same goes for direct download links 😎
**✘ How to setup proxy?**
⤷ Send /proxy command alongside the proxy 📡 (Ex: `/proxy https://example.com:8080`)
Please note that the free proxies you see on internet are **not working**
** ✘ How to get my account details?**
⤷ Send /acc command and I'll send you your account details 🫣
**Made with ❤️ by @NexaBotsUpdates**
"""
)