Skip to content

Commit

Permalink
add pyrofork
Browse files Browse the repository at this point in the history
 and remove pyrogram,pyromod==1.5 and import pyromod.listen form bot.py
  • Loading branch information
ShubhamBasava committed Jul 8, 2024
1 parent 5953705 commit 47559bd
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 18 deletions.
Binary file added Bot.session
Binary file not shown.
2 changes: 0 additions & 2 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

from aiohttp import web
from plugins import web_server

import pyromod.listen
from pyrogram import Client
from pyrogram.enums import ParseMode
import sys
Expand Down
26 changes: 13 additions & 13 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand All @@ -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"

Expand Down
15 changes: 15 additions & 0 deletions filesharingbot.txt
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.
2 changes: 1 addition & 1 deletion plugins/cbb.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ async def cb_handler(client: Bot, query: CallbackQuery):
data = query.data
if data == "about":
await query.message.edit_text(
text = f"<b>○ ᴏᴡɴᴇʀ : <a href='tg://user?id={OWNER_ID}'>ᴍɪᴋᴇʏ</a>\n○ ᴍʏ ᴜᴘᴅᴀᴛᴇs : <a href='https://t.me/CodeFlix_Bots'>ᴄᴏᴅᴇғʟɪx ʙᴏᴛs</a>\n○ ᴍᴏᴠɪᴇs ᴜᴘᴅᴀᴛᴇs : <a href='https://t.me/Team_Netflix'>ᴛᴇᴀᴍ ɴᴇᴛғʟɪx</a>\n○ ᴏᴜʀ ᴄᴏᴍᴍᴜɴɪᴛʏ : <a href='https://t.me/otakuflix_network'>ᴏᴛᴀᴋᴜғʟɪx ɴᴇᴛᴡᴏʀᴋ</a>\n○ ᴀɴɪᴍᴇ ᴄʜᴀᴛ : <a href='https://t.me/weebzonex'>ᴡᴇᴇʙ ᴢᴏɴᴇ</a></b>",
text = f"<b><blockquote>○ ᴏᴡɴᴇʀ : <a href='tg://user?id={OWNER_ID}'>ᴍɪᴋᴇʏ</a>\n○ ᴍʏ ᴜᴘᴅᴀᴛᴇs : <a href='https://t.me/CodeFlix_Bots'>ᴄᴏᴅᴇғʟɪx ʙᴏᴛs</a>\n○ ᴍᴏᴠɪᴇs ᴜᴘᴅᴀᴛᴇs : <a href='https://t.me/Team_Netflix'>ᴛᴇᴀᴍ ɴᴇᴛғʟɪx</a>\n○ ᴏᴜʀ ᴄᴏᴍᴍᴜɴɪᴛʏ : <a href='https://t.me/otakuflix_network'>ᴏᴛᴀᴋᴜғʟɪx ɴᴇᴛᴡᴏʀᴋ</a>\n○ ᴀɴɪᴍᴇ ᴄʜᴀᴛ : <a href='https://t.me/weebzonex'>ᴡᴇᴇʙ ᴢᴏɴᴇ</a></blockquote></b>",
disable_web_page_preview = True,
reply_markup = InlineKeyboardMarkup(
[
Expand Down
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# --- For-Bot-Working --------- #
pyrogram
pyrofork
TgCrypto
pyromod==1.5
# --- For-Database ------------ #
pymongo
dnspython
Expand Down

0 comments on commit 47559bd

Please sign in to comment.