Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
816f52d
Update config.py
YuuichiSama Apr 4, 2024
486c1ca
Update config.py
YuuichiSama Apr 4, 2024
692aa2b
Update config.py
YuuichiSama Apr 4, 2024
b7232fd
Update cbb.py
YuuichiSama Apr 4, 2024
da469b3
Update cbb.py
YuuichiSama Apr 4, 2024
bfb65ec
Update start.py
YuuichiSama Apr 4, 2024
ba28e10
Update config.py
YuuichiSama Apr 27, 2024
e384627
Update config.py
YuuichiSama Apr 27, 2024
19df2cf
Update config.py
YuuichiSama Apr 27, 2024
623e6b9
Update config.py
YuuichiSama Apr 27, 2024
b2a0eb3
Update config.py
YuuichiSama Apr 27, 2024
c69f10c
Update start.py
YuuichiSama Apr 27, 2024
b040cfa
Update cbb.py
YuuichiSama Apr 27, 2024
07bf55d
Update config.py
YuuichiSama Apr 27, 2024
3c136a3
Update start.py
YuuichiSama May 12, 2024
5520d37
Update config.py
YuuichiSama May 12, 2024
84bdb8e
Update config.py
YuuichiSama May 12, 2024
5320ad0
Update config.py
YuuichiSama May 12, 2024
c45d320
Update start.py
YuuichiSama May 12, 2024
c7e2261
Update config.py
YuuichiSama May 24, 2024
74991c7
Update start.py
YuuichiSama May 24, 2024
a209ae5
Update config.py
YuuichiSama May 31, 2024
9ef5871
Update start.py
YuuichiSama May 31, 2024
26df0d1
Update config.py
YuuichiSama Jun 9, 2024
19330fa
Update config.py
YuuichiSama Jun 9, 2024
82370db
Update config.py
YuuichiSama Jun 9, 2024
e7c4730
Update config.py
YuuichiSama Jun 9, 2024
fc39e07
Update start.py
YuuichiSama Jun 18, 2024
43b1b25
Update config.py
YuuichiSama Jun 18, 2024
96cd6c7
Update start.py
YuuichiSama Jun 19, 2024
af38469
Update start.py
YuuichiSama Jun 19, 2024
ce33ae0
Update bot.py
YuuichiSama Jun 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
from datetime import datetime

from config import API_HASH, APP_ID, LOGGER, TG_BOT_TOKEN, TG_BOT_WORKERS, FORCE_SUB_CHANNEL, CHANNEL_ID, PORT
import pyrogram.utils

pyrogram.utils.MIN_CHANNEL_ID = -1009147483647

class Bot(Client):
def __init__(self):
Expand Down
24 changes: 12 additions & 12 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,41 +13,41 @@
TG_BOT_TOKEN = os.environ.get("TG_BOT_TOKEN", "")

#Your API ID from my.telegram.org
APP_ID = int(os.environ.get("APP_ID", ""))
APP_ID = int(os.environ.get("APP_ID", "18196402"))

#Your API Hash from my.telegram.org
API_HASH = os.environ.get("API_HASH", "")
API_HASH = os.environ.get("API_HASH", "a184b91d39fc85265e232e7c323fac45")

#Your db channel Id
CHANNEL_ID = int(os.environ.get("CHANNEL_ID", ""))
CHANNEL_ID = int(os.environ.get("CHANNEL_ID", "-1002082187293"))

#OWNER ID
OWNER_ID = int(os.environ.get("OWNER_ID", ""))
OWNER_ID = int(os.environ.get("OWNER_ID", "5911422304"))

#Port
PORT = os.environ.get("PORT", "8080")

#Database
DB_URI = "mongodb+srv://susantamusic:susantabhan@cluster0.5pwi1py.mongodb.net/?retryWrites=true&w=majority"
DB_URI = "mongodb+srv://naibansari987:Yuuichi@cluster0.knyuwrv.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0"
DB_NAME = os.environ.get("DATABASE_NAME", "filesharexbot")

SHORTLINK_URL = os.environ.get("SHORTLINK_URL", "moneycase.link")
SHORTLINK_API = os.environ.get("SHORTLINK_API", "710b7ed8fdc5f89e9036000cc10121921e7732f1")
VERIFY_EXPIRE = int(os.environ.get('VERIFY_EXPIRE', 86400)) # Add time in seconds
SHORTLINK_URL = os.environ.get("SHORTLINK_URL", "linkshortify.com")
SHORTLINK_API = os.environ.get("SHORTLINK_API", "76fc51ee2ba9f3fd0b5ae1767ac26e0ba7f84792")
VERIFY_EXPIRE = int(os.environ.get('VERIFY_EXPIRE', 43200)) # Add time in seconds
IS_VERIFY = os.environ.get("IS_VERIFY", "True")
TUT_VID = os.environ.get("TUT_VID","gojfsi/2")
TUT_VID = os.environ.get("TUT_VID","")


#force sub channel id, if you want enable force sub
FORCE_SUB_CHANNEL = int(os.environ.get("FORCE_SUB_CHANNEL", ""))
FORCE_SUB_CHANNEL = int(os.environ.get("FORCE_SUB_CHANNEL", "-1002000226877"))

TG_BOT_WORKERS = int(os.environ.get("TG_BOT_WORKERS", "4"))

#start message
START_MSG = os.environ.get("START_MESSAGE", "Hello {first}\n\nI can store private files in Specified Channel and other users can access it from special link.")
try:
ADMINS=[]
for x in (os.environ.get("ADMINS", "6852649461").split()):
for x in (os.environ.get("ADMINS", "5911422304 5686576026 5995342026").split()):
ADMINS.append(int(x))
except ValueError:
raise Exception("Your Admins list does not contain valid integers.")
Expand All @@ -56,7 +56,7 @@
FORCE_MSG = os.environ.get("FORCE_SUB_MESSAGE", "Hello {first}\n\n<b>You need to join in my Channel/Group to use me\n\nKindly Please join Channel</b>")

#set your Custom Caption here, Keep None for Disable Custom Caption
CUSTOM_CAPTION = os.environ.get("CUSTOM_CAPTION", "This video/Photo/anything is available on the internet. We LeakHubd or its subsidiary channel doesn't produce any of them.")
CUSTOM_CAPTION = os.environ.get("CUSTOM_CAPTION", "This video/Photo/anything is available on the internet. We Pleasure Realm or its subsidiary channel doesn't produce any of them.")

#set True if you want to prevent users from forwarding files from bot
PROTECT_CONTENT = True if os.environ.get('PROTECT_CONTENT', "False") == "True" else False
Expand Down
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>○ Creator : <a href='tg://user?id={OWNER_ID}'>This Person</a>\n○ Language : <code>Python3</code>\n○ Library : <a href='https://docs.pyrogram.org/'>Pyrogram asyncio {__version__}</a>\n○ Source Code : <a href='t.me/waspros'>Click here</a>\n○ Channel : @susanta_bhandarii\n○ Support Group : @susanta_support</b>",
text = f"<b>○ Creator : <a href='tg://user?id={OWNER_ID}'>Katagiri Yuuichi</a>\n○ Language : <code>Python3</code>\n○ Library : <a href='https://docs.pyrogram.org/'>Pyrogram asyncio {__version__}</a>\n○ Source Code : <a href='t.me/Katagiri_Yuuichiii'>Click here</a>\n○ Channel : @Pleasure_Realm\n○ Chat Group : @WAnime_Chat_Group</b>",
disable_web_page_preview = True,
reply_markup = InlineKeyboardMarkup(
[
Expand Down
6 changes: 3 additions & 3 deletions plugins/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ async def start_command(client: Client, message: Message):
verify_status = await get_verify_status(id)
if IS_VERIFY and not verify_status['is_verified']:
short_url = f"api.shareus.io"
full_tut_url = f"https://t.me/neprosz/3"
full_tut_url = f"https://t.me/Pleasure_Realm_Tutorial/2"
token = ''.join(random.choices(string.ascii_letters + string.digits, k=10))
await update_verify_status(id, verify_token=token, link="")
link = await get_shortlink(SHORTLINK_URL, SHORTLINK_API,f'https://telegram.dog/{client.username}?start=verify_{token}')
btn = [
[InlineKeyboardButton("Click here", url=link)],
[InlineKeyboardButton('How to use the bot', url=full_tut_url)]
[InlineKeyboardButton("Click Here", url=link)],
[InlineKeyboardButton('How To Use The Bot ?', url=full_tut_url)]
]
await message.reply(f"Your Ads token is expired, refresh your token and try again.\n\nToken Timeout: {get_exp_time(VERIFY_EXPIRE)}\n\nWhat is the token?\n\nThis is an ads token. If you pass 1 ad, you can use the bot for 24 Hour after passing the ad.", reply_markup=InlineKeyboardMarkup(btn), protect_content=False, quote=True)

Expand Down