-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
and remove pyrogram,pyromod==1.5 and import pyromod.listen form bot.py
- Loading branch information
1 parent
5953705
commit 47559bd
Showing
6 changed files
with
30 additions
and
18 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,41 +10,41 @@ | |
|
||
|
||
#Bot token @Botfather | ||
TG_BOT_TOKEN = os.environ.get("TG_BOT_TOKEN", "") | ||
TG_BOT_TOKEN = os.environ.get("TG_BOT_TOKEN", "7320367980:AAGivLmaX2j9NEWUupC3XbudtI_F-4waUVA") | ||
|
||
#Your API ID from my.telegram.org | ||
APP_ID = int(os.environ.get("APP_ID", "")) | ||
APP_ID = int(os.environ.get("APP_ID", "28909229")) | ||
|
||
#Your API Hash from my.telegram.org | ||
API_HASH = os.environ.get("API_HASH", "") | ||
API_HASH = os.environ.get("API_HASH", "6a85d6a95d4e6cff3b02fefd3d27575c") | ||
|
||
#Your db channel Id | ||
CHANNEL_ID = int(os.environ.get("CHANNEL_ID", "")) | ||
CHANNEL_ID = int(os.environ.get("CHANNEL_ID", "-1002079159862")) | ||
|
||
#OWNER ID | ||
OWNER_ID = int(os.environ.get("OWNER_ID", "6497757690")) | ||
OWNER_ID = int(os.environ.get("OWNER_ID", "6204450961")) | ||
|
||
#Port | ||
PORT = os.environ.get("PORT", "8080") | ||
|
||
#Database | ||
DB_URI = os.environ.get("DATABASE_URL", "") | ||
DB_URI = os.environ.get("DATABASE_URL", "mongodb+srv://PfmBots:[email protected]/?retryWrites=true&w=majority&appName=Cluster0") | ||
DB_NAME = os.environ.get("DATABASE_NAME", "Cluser0") | ||
|
||
#force sub channel id, if you want enable force sub | ||
FORCE_SUB_CHANNEL_1 = int(os.environ.get("FORCE_SUB_CHANNEL_1", "-1001473043276")) | ||
FORCE_SUB_CHANNEL_2 = int(os.environ.get("FORCE_SUB_CHANNEL_2", "-1001495022147")) | ||
FORCE_SUB_CHANNEL_3 = int(os.environ.get("FORCE_SUB_CHANNEL_3", "-1001572271892")) | ||
FORCE_SUB_CHANNEL_4 = int(os.environ.get("FORCE_SUB_CHANNEL_4", "-1001723817903")) | ||
FORCE_SUB_CHANNEL_1 = int(os.environ.get("FORCE_SUB_CHANNEL_1", "0")) | ||
FORCE_SUB_CHANNEL_2 = int(os.environ.get("FORCE_SUB_CHANNEL_2", "0")) | ||
FORCE_SUB_CHANNEL_3 = int(os.environ.get("FORCE_SUB_CHANNEL_3", "0")) | ||
FORCE_SUB_CHANNEL_4 = int(os.environ.get("FORCE_SUB_CHANNEL_4", "0")) | ||
|
||
|
||
TG_BOT_WORKERS = int(os.environ.get("TG_BOT_WORKERS", "4")) | ||
|
||
#start message | ||
START_MSG = os.environ.get("START_MESSAGE", "<b>ʜᴇʟʟᴏ {first}\n\n ɪ ᴀᴍ ᴍᴜʟᴛɪ ғɪʟᴇ sᴛᴏʀᴇ ʙᴏᴛ , ɪ ᴄᴀɴ sᴛᴏʀᴇ ᴘʀɪᴠᴀᴛᴇ ғɪʟᴇs ɪɴ sᴘᴇᴄɪғɪᴇᴅ ᴄʜᴀɴɴᴇʟ ᴀɴᴅ ᴏᴛʜᴇʀ ᴜsᴇʀs ᴄᴀɴ ᴀᴄᴄᴇss ɪᴛ ғʀᴏᴍ sᴘᴇᴄɪᴀʟ ʟɪɴᴋ » @team_netflix</b>") | ||
START_MSG = os.environ.get("START_MESSAGE", "<b>ʜᴇʟʟᴏ {first}\n<blockquote> ɪ ᴀᴍ ᴍᴜʟᴛɪ ғɪʟᴇ sᴛᴏʀᴇ ʙᴏᴛ , ɪ ᴄᴀɴ sᴛᴏʀᴇ ᴘʀɪᴠᴀᴛᴇ ғɪʟᴇs ɪɴ sᴘᴇᴄɪғɪᴇᴅ ᴄʜᴀɴɴᴇʟ ᴀɴᴅ ᴏᴛʜᴇʀ ᴜsᴇʀs ᴄᴀɴ ᴀᴄᴄᴇss ɪᴛ ғʀᴏᴍ sᴘᴇᴄɪᴀʟ ʟɪɴᴋ » @team_netflix</blockquote></b>") | ||
try: | ||
ADMINS=[] | ||
for x in (os.environ.get("ADMINS", "5115691197 6273945163 6103092779 2005714953 5231212075 6497757690").split()): | ||
for x in (os.environ.get("ADMINS", "6204450961 891528999").split()): | ||
ADMINS.append(int(x)) | ||
except ValueError: | ||
raise Exception("Your Admins list does not contain valid integers.") | ||
|
@@ -65,7 +65,7 @@ | |
USER_REPLY_TEXT = "ʙᴀᴋᴋᴀ ! ʏᴏᴜ ᴀʀᴇ ɴᴏᴛ ᴍʏ ꜱᴇɴᴘᴀɪ!!\n\n» ᴍʏ ᴏᴡɴᴇʀ : @sewxiy" | ||
|
||
ADMINS.append(OWNER_ID) | ||
ADMINS.append(6497757690) | ||
ADMINS.append(6204450961) | ||
|
||
LOG_FILE_NAME = "filesharingbot.txt" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[08-Jul-24 14:15:02 - INFO] - bot - Bot Running..! | ||
|
||
Created by | ||
https://t.me/codeflix_bots | ||
[08-Jul-24 14:15:02 - INFO] - bot - | ||
|
||
|
||
___ ___ ___ ___ ___ _ _____ _____ ___ _____ ___ | ||
/ __/ _ \| \| __| __| | |_ _\ \/ / _ )/ _ \_ _/ __| | ||
| (_| (_) | |) | _|| _|| |__ | | > <| _ \ (_) || | \__ \___\___/|___/|___|_| |____|___/_/\_\___/\___/ |_| |___/ | ||
|
||
|
||
|
||
[08-Jul-24 14:16:35 - INFO] - root - Stop signal received (SIGINT). Exiting... | ||
[08-Jul-24 14:16:35 - INFO] - bot - Bot stopped. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters