Spaces:
Running
Running
Delete sample_const.py
Browse files- sample_const.py +0 -92
sample_const.py
DELETED
|
@@ -1,92 +0,0 @@
|
|
| 1 |
-
# Do not edit this file, copy this file & rename it to const.py. Any format error will result in not getting start or help message.
|
| 2 |
-
|
| 3 |
-
from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
#use the same format for name & user_id placeholders
|
| 7 |
-
START_MSG = """
|
| 8 |
-
Hi **[{}](tg://user?id={})**, I am a media finder bot which finds media from my database channel. Just send query to find the media.
|
| 9 |
-
Send /help for more.
|
| 10 |
-
"""
|
| 11 |
-
|
| 12 |
-
HELP_MSG = """
|
| 13 |
-
REQUEST FORMAT :- *MOVIE NAME WITH YEAR (LANGUAGE OPTIONAL)
|
| 14 |
-
|
| 15 |
-
REQUEST LIKE THIS :-
|
| 16 |
-
=>IRON MANβ
|
| 17 |
-
=>IRON MAN 2008β
|
| 18 |
-
=>IRON MAN 2008 TAMILβ
|
| 19 |
-
|
| 20 |
-
DON'T REQUEST LIKE THIS :-
|
| 21 |
-
=>IRON MAN MOVIE β
|
| 22 |
-
=>IRON MAN 2008 GIVE β
|
| 23 |
-
=>IRON MAN 2008 ANAPUGA β
|
| 24 |
-
|
| 25 |
-
[π
Don't use this words while searching: HD, MOVIES, SEND, PREDVD, WEB-DL, ANAPUGA, SEND PANNUGA, HDrip, VENUM]
|
| 26 |
-
|
| 27 |
-
If Any Movies Not Available Send Your MOVIE NAMES Via `/request <Movie Name>` or REPORT HERE π @ANGRY_BIRD22_bot
|
| 28 |
-
|
| 29 |
-
ββββββββββββββββββββββ
|
| 30 |
-
**You can find the bot commands here.**
|
| 31 |
-
|
| 32 |
-
**User Commands:-**
|
| 33 |
-
/start - Start the bot and view main menu
|
| 34 |
-
/help - Show this help message
|
| 35 |
-
/trending - View top 10 trending movies this week
|
| 36 |
-
/newuploads - View latest 25 newly uploaded movies
|
| 37 |
-
/request - Request a missing movie from admins (`/request Movie Name`)
|
| 38 |
-
/settings - Toggle settings of Precise Mode and Button Mode
|
| 39 |
-
|
| 40 |
-
**Precise Mode:**
|
| 41 |
-
- If Enabled, bot will match the word & return results with only the exact match
|
| 42 |
-
- If Disabled, bot will match the word & return all the results containing the word
|
| 43 |
-
|
| 44 |
-
**Result Mode:**
|
| 45 |
-
- If Button, bot will return results in button format
|
| 46 |
-
- If List, bot will return results in list format
|
| 47 |
-
- If HyperLink, bot will return results in hyperlink format
|
| 48 |
-
|
| 49 |
-
**Admin Commands:-**
|
| 50 |
-
/requests - View pending movie requests summary
|
| 51 |
-
/message - Send message to user's PM - `/message <user_id/username> [optional text]`
|
| 52 |
-
/logs - Get logs as a file
|
| 53 |
-
/server - Get server stats
|
| 54 |
-
/restart - Restart the bot
|
| 55 |
-
/stats - Get bot user stats
|
| 56 |
-
/broadcast - Reply to a message to send that to all bot users
|
| 57 |
-
/index - Start indexing a database channel (bot must be admin of the channel if that is private channel)
|
| 58 |
-
*(You can just forward the message from database channel for starting indexing, no need to use the /index command)*
|
| 59 |
-
/delete - Reply to a file to delete it from database
|
| 60 |
-
/autodelete - Set file auto delete time in seconds
|
| 61 |
-
/repairmode - Enable or disable repair mode - If on, bot will not send any files
|
| 62 |
-
/customcaption - Set custom caption for files
|
| 63 |
-
/adminsettings - Get current admin settings
|
| 64 |
-
/ban - Ban a user from bot - `/ban user_id`
|
| 65 |
-
/unban - Unban a user from bot - `/unban user_id`
|
| 66 |
-
/addfilter - Add a text filter - `/addfilter filter message` or `/addfilter "filter multiple words" message` *(If a filter is there, bot will send the filter rather than file)*
|
| 67 |
-
/delfilter - Delete a text filter - `/delfilter filter`
|
| 68 |
-
/listfilters - List all filters currently added in the bot
|
| 69 |
-
/forcesub - Set force subscribe channel - `/forcesub channel_id` *(Bot must be admin of that channel)*
|
| 70 |
-
/checklink - Check invite link for force subscribe channel
|
| 71 |
-
/total - Get count of total files in DB
|
| 72 |
-
"""
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
START_KB = InlineKeyboardMarkup(
|
| 76 |
-
[
|
| 77 |
-
[
|
| 78 |
-
InlineKeyboardButton("π Help", callback_data="help_cb"),
|
| 79 |
-
InlineKeyboardButton(
|
| 80 |
-
"π¨βπ» Source Code", url="https://github.com/EL-Coders/mediafinder"
|
| 81 |
-
),
|
| 82 |
-
]
|
| 83 |
-
]
|
| 84 |
-
)
|
| 85 |
-
|
| 86 |
-
HELP_KB = InlineKeyboardMarkup(
|
| 87 |
-
[
|
| 88 |
-
[
|
| 89 |
-
InlineKeyboardButton("π Back", callback_data="back_m"),
|
| 90 |
-
],
|
| 91 |
-
]
|
| 92 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|