Skip to content

main #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

main #30

Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"index",
"inline"
],
"website": "https://github.com/JOSProjects/IMDb-Movie-Bot",
"repository": "https://github.com/JOSProjects/IMDb-Movie-Bot",
"website": "https://github.com/Kingmaker003/IMDb-Movie-Bot",
"repository": "https://github.com/Kingmaker003/IMDb-Movie-Bot",
"env": {
"BOT_TOKEN": {
"description": "Your bot token.",
Expand Down
16 changes: 8 additions & 8 deletions plugins/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async def start(client, message):
if message.chat.type in ['group', 'supergroup']:
buttons = [
[
InlineKeyboardButton('⭕️ Updates ⭕️', url='https://t.me/josprojects')
InlineKeyboardButton('⭕️ Updates ⭕️', url='https://t.me/tamilblasterslinkz')
],
[
InlineKeyboardButton('🛠️ Help', url=f"https://t.me/{temp.U_NAME}?start=help"),
Expand All @@ -50,8 +50,8 @@ async def start(client, message):
],[
InlineKeyboardButton('🕵️ Search here Movie 🕵️', switch_inline_query_current_chat='')
],[
InlineKeyboardButton('⭕️ Updates', url='https://t.me/josprojects'),
InlineKeyboardButton('Movie Club ⭕️', url='https://t.me/+y53tWFUw6Q43NzE9')
InlineKeyboardButton('⭕️ Updates', url='https://t.me/tamilblasterslinkz'),
InlineKeyboardButton('Movie Club ⭕️', url='https://t.me/tamilrockers003')
],[
InlineKeyboardButton('❌ Close the Menu ❌', callback_data='close_data')
]]
Expand Down Expand Up @@ -98,8 +98,8 @@ async def start(client, message):
],[
InlineKeyboardButton('🕵️ Search here Movie 🕵️', switch_inline_query_current_chat='')
],[
InlineKeyboardButton('⭕️ Updates', url='https://t.me/josprojects'),
InlineKeyboardButton('Movie Club ⭕️', url='https://t.me/+y53tWFUw6Q43NzE9')
InlineKeyboardButton('⭕️ Updates', url='https://t.me/tamilblasterslinkz'),
InlineKeyboardButton('Movie Club ⭕️', url='https://t.me/tamilrockers003')
],[
InlineKeyboardButton('❌ Close the Menu ❌', callback_data='close_data')
]]
Expand Down Expand Up @@ -250,11 +250,11 @@ async def start(client, message):
f_caption = f"{files.file_name}"
buttons = [
[
InlineKeyboardButton('⭕️ Support', url='https://t.me/JOSPSupport'),
InlineKeyboardButton('Channel ⭕️', url='https://t.me/josprojects/221')
InlineKeyboardButton('⭕️ Support', url='https://t.me/rcmovierequest'),
InlineKeyboardButton('Channel ⭕️', url='https://t.me/tamilblasterslinkz')
],
[
InlineKeyboardButton('🎬 Series & Movie Club 🎬', url=f'https://t.me/+y53tWFUw6Q43NzE9')
InlineKeyboardButton('🎬 Series & Movie Club 🎬', url=f'https://t.me/tamilblasterslinkz')
]
]
await client.send_cached_media(
Expand Down
2 changes: 1 addition & 1 deletion plugins/inline.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async def answer(bot, query):
if not await inline_users(query):
await query.answer(results=[],
cache_time=0,
switch_pm_text='okDa',
switch_pm_text='okBro',
switch_pm_parameter="hehe")
return

Expand Down
4 changes: 2 additions & 2 deletions plugins/p_ttishow.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async def save_group(bot, message):
return
buttons = [[
InlineKeyboardButton('ℹ️ Help', url=f"https://t.me/{temp.U_NAME}?start=help"),
InlineKeyboardButton('Updates 📢', url='https://t.me/josprojects/221')
InlineKeyboardButton('Updates 📢', url='https://t.me/brokenupdates')
]]
reply_markup=InlineKeyboardMarkup(buttons)
await message.reply_text(
Expand All @@ -49,7 +49,7 @@ async def save_group(bot, message):
if settings["welcome"]:
for u in message.new_chat_members:
buttons = [[
InlineKeyboardButton('👉 ⚠️ Press me... 🥰 👈', url="https://t.me/josprojects")
InlineKeyboardButton('👉 ⚠️ Press me... 🥰 👈', url="https://t.me/brokenupdates")
]]
if (temp.MELCOW).get('welcome') is not None:
try:
Expand Down
50 changes: 25 additions & 25 deletions plugins/pm_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,27 +97,27 @@ async def next_page(bot, query):
off_set = offset - 10
if n_offset == 0:
btn.append(
[InlineKeyboardButton("⏪ BACK", callback_data=f"next_{req}_{key}_{off_set}"),
[InlineKeyboardButton("☜ 𝕭𝖆𝖈𝖐", callback_data=f"next_{req}_{key}_{off_set}"),
InlineKeyboardButton(text=f"Check PM!", url=f"https://t.me/{temp.U_NAME}"),
InlineKeyboardButton(f"📃 {round(int(offset) / 10) + 1} / {round(total / 10)}",
InlineKeyboardButton(f"📇 {round(int(offset) / 10) + 1} / {round(total / 10)}",
callback_data="pages")]
)
elif off_set is None:
btn.append(
[InlineKeyboardButton(f"🗓 {round(int(offset) / 10) + 1} / {round(total / 10)}", callback_data="pages"),
[InlineKeyboardButton(f"📇 {round(int(offset) / 10) + 1} / {round(total / 10)}", callback_data="pages"),
InlineKeyboardButton(text=f"Check PM!", url=f"https://t.me/{temp.U_NAME}"),
InlineKeyboardButton("NEXT ⏩", callback_data=f"next_{req}_{key}_{n_offset}")])
InlineKeyboardButton("𝕹𝖊𝖝𝖙 ☞", callback_data=f"next_{req}_{key}_{n_offset}")])
else:
btn.append(
[
InlineKeyboardButton("⏪ BACK", callback_data=f"next_{req}_{key}_{off_set}"),
InlineKeyboardButton(f"🗓 {round(int(offset) / 10) + 1} / {round(total / 10)}", callback_data="pages"),
InlineKeyboardButton("NEXT ⏩", callback_data=f"next_{req}_{key}_{n_offset}")]
InlineKeyboardButton("☜ 𝕭𝖆𝖈𝖐", callback_data=f"next_{req}_{key}_{off_set}"),
InlineKeyboardButton(f"📇 {round(int(offset) / 10) + 1} / {round(total / 10)}", callback_data="pages"),
InlineKeyboardButton("𝕹𝖊𝖝𝖙 ☞", callback_data=f"next_{req}_{key}_{n_offset}")]
)
btn.insert(0,
[
InlineKeyboardButton("⭕️ Movie", url="https://t.me/+26XbUS8O3cM1MDU1"),
InlineKeyboardButton("Series ⭕️", url="https://t.me/+VWYQKLaIim4yNjk1")
InlineKeyboardButton("⭕️ Movie", url="https://t.me/tamilblasterslinkz"),
InlineKeyboardButton("Movies ⭕️", url="https://t.me/tamilblasterslinkz")
])

btn.insert(0, [
Expand Down Expand Up @@ -382,11 +382,11 @@ async def cb_handler(client: Client, query: CallbackQuery):
f_caption = f"{files.file_name}"
buttons = [
[
InlineKeyboardButton('⭕️ Support', url='https://t.me/JOSPSupport'),
InlineKeyboardButton('Channel ⭕️', url='https://t.me/JosProjects')
InlineKeyboardButton('⭕️ Support', url='https://t.me/rcmovierequest'),
InlineKeyboardButton('Channel ⭕️', url='https://t.me/tamilblasterslinkz')
],
[
InlineKeyboardButton('🎬 Series & Movie Club 🎬', url=f'https://t.me/+y53tWFUw6Q43NzE9')
InlineKeyboardButton('🎬 Series & Movie Club 🎬', url=f'https://t.me/tamilblasterslinkz')
]
]

Expand Down Expand Up @@ -436,11 +436,11 @@ async def cb_handler(client: Client, query: CallbackQuery):
f_caption = f"{title}"
buttons = [
[
InlineKeyboardButton('⭕️ Support', url='https://t.me/JOSPSupport'),
InlineKeyboardButton('Channel ⭕️', url='https://t.me/JosProjects')
InlineKeyboardButton('⭕️ Support', url='https://t.me/rcmovierequest'),
InlineKeyboardButton('Channel ⭕️', url='https://t.me/tamilblasterslinkz')
],
[
InlineKeyboardButton('🎬 Series & Movie Club 🎬', url=f'https://t.me/+y53tWFUw6Q43NzE9')
InlineKeyboardButton('🎬 Series & Movie Club 🎬', url=f'https://t.me/tamilblasterslinkz')
]
]
await query.answer()
Expand All @@ -462,8 +462,8 @@ async def cb_handler(client: Client, query: CallbackQuery):
],[
InlineKeyboardButton('🕵️ Search here Movie 🕵️', switch_inline_query_current_chat='')
],[
InlineKeyboardButton('⭕️ Updates', url='https://t.me/josprojects'),
InlineKeyboardButton('Movie Club ⭕️', url='https://t.me/+y53tWFUw6Q43NzE9')
InlineKeyboardButton('⭕️ Updates', url='https://t.me/tamilblasterslinkz'),
InlineKeyboardButton('Movie Club ⭕️', url='https://t.me/rcmovierequest')
],[
InlineKeyboardButton('❌ Close the Menu ❌', callback_data='close_data')
]]
Expand Down Expand Up @@ -503,7 +503,7 @@ async def cb_handler(client: Client, query: CallbackQuery):
],[
InlineKeyboardButton('Zombies', callback_data='zombies'),
InlineKeyboardButton('« Back', callback_data='start'),
InlineKeyboardButton('Adult Bot 🔞', url='https://t.me/AdultSearchXBot')
InlineKeyboardButton('songs Bot 🎧', url='https://t.me/Tamilmusiclybot')
]]
reply_markup = InlineKeyboardMarkup(buttons)
await query.message.edit_text(
Expand All @@ -513,7 +513,7 @@ async def cb_handler(client: Client, query: CallbackQuery):
)
elif query.data == "about":
buttons = [[
InlineKeyboardButton('⭕ Status', url='https://t.me/josprojects/221'),
InlineKeyboardButton('⭕ Status', url='https://t.me/brokenupdates/6'),
InlineKeyboardButton('Source 🪤', callback_data='source')
],[
InlineKeyboardButton('❓ How to Use ❓', callback_data='help')
Expand Down Expand Up @@ -927,22 +927,22 @@ async def auto_filter(client, msg, spoll=False):
BUTTONS[key] = search
req = message.from_user.id if message.from_user else 0
btn.append(
[InlineKeyboardButton(text=f"🗓 1/{round(int(total_results) / 10)}", callback_data="pages"),
[InlineKeyboardButton(text=f"📇 1/{round(int(total_results) / 10)}", callback_data="pages"),
InlineKeyboardButton(text="Check PM!", url=f"https://t.me/{temp.U_NAME}"),
InlineKeyboardButton(text="NEXT ", callback_data=f"next_{req}_{key}_{offset}")]
InlineKeyboardButton(text="NEXT ", callback_data=f"next_{req}_{key}_{offset}")]
)
else:
btn.append(
[InlineKeyboardButton(text="🗓 1/1", callback_data="pages"),
[InlineKeyboardButton(text="📇 1/1", callback_data="pages"),
InlineKeyboardButton(text="Check PM!", url=f"https://t.me/{temp.U_NAME}")]
)

btn.insert(0, [
InlineKeyboardButton("⭕️ Movie", url="https://t.me/+26XbUS8O3cM1MDU1"),
InlineKeyboardButton("Series ⭕️", url="https://t.me/+VWYQKLaIim4yNjk1")
InlineKeyboardButton("⭕️ Movie", url="https://t.me/tamilblasterslinkz"),
InlineKeyboardButton("Series ⭕️", url="https://t.me/tamilrockers003")
])
btn.insert(0, [
InlineKeyboardButton("⭕️ Join Our Channel ⭕️",url="https://t.me/imdbprobots/4")
InlineKeyboardButton("⭕️ Join Our Channel ⭕️",url="https://t.me/tamilblasterslinkz")
])
reply_id = message.reply_to_message.message_id if message.reply_to_message else message.message_id
imdb = await get_poster(search, file=(files[0]).file_name) if settings["imdb"] else None
Expand Down
4 changes: 2 additions & 2 deletions sample_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def is_enabled(value, default):
P_TTI_SHOW_OFF = is_enabled((environ.get('P_TTI_SHOW_OFF', "True")), True)
IMDB = is_enabled((environ.get('IMDB', "True")), True)
SINGLE_BUTTON = is_enabled((environ.get('SINGLE_BUTTON', "True")), True)
CUSTOM_FILE_CAPTION = environ.get("CUSTOM_FILE_CAPTION", "<code>{file_name}</code>\n\n<b>Size:</b> {file_size}\n\n{file_caption}\n\n<b>[© TVSeries & Movie Studio](https://t.me/joinchat/prE6ALN6x2hkY2E1)</b>")
IMDB_TEMPLATE = environ.get("IMDB_TEMPLATE", "<b>🎬 Title:</b> <a href={url}>{title}</a>\n<b>📺 Type:</b> {kind}\n<b>📆 Release:</b> <a href={url}/releaseinfo>{release_date}</a>\n<b>🌟 Rating:</b> <a href={url}/ratings>{rating} / 10</a>\n(based on <code>{votes}</code> user ratings.)\n\n<b>📀 Runtime:</b> <code>{runtime} minutes</code>\n<b>🎭 Genres:</b> {genres}\n\n<b>☀️ Languages:</b> {languages}\n<b>🎛 Countries:</b> {countries}\n<b>🎥 Director:</b> {director}\n<b>📝 Writers:</b> {writer}\n\n<b><a href='https://t.me/joinchat/prE6ALN6x2hkY2E1'>© TVSeries & Movie Studio</a></b>")
CUSTOM_FILE_CAPTION = environ.get("CUSTOM_FILE_CAPTION", "<code>{file_name}</code>\n\n<b>Size:</b> {file_size}\n\n{file_caption}\n\n<b>[© Tamil Blasters](https://t.me/tamilblasterslinkz)</b>")
IMDB_TEMPLATE = environ.get("IMDB_TEMPLATE", "<b>🎬 Title:</b> <a href={url}>{title}</a>\n<b>📺 Type:</b> {kind}\n<b>📆 Release:</b> <a href={url}/releaseinfo>{release_date}</a>\n<b>🌟 Rating:</b> <a href={url}/ratings>{rating} / 10</a>\n(based on <code>{votes}</code> user ratings.)\n\n<b>📀 Runtime:</b> <code>{runtime} minutes</code>\n<b>🎭 Genres:</b> {genres}\n\n<b>☀️ Languages:</b> {languages}\n<b>🎛 Countries:</b> {countries}\n<b>🎥 Director:</b> {director}\n<b>📝 Writers:</b> {writer}\n\n<b><a href='https://t.me/tamilblasterslinkz'>© Tamilblasters</a></b>")
LONG_IMDB_DESCRIPTION = is_enabled(environ.get("LONG_IMDB_DESCRIPTION", "False"), False)
SPELL_CHECK_REPLY = is_enabled(environ.get("SPELL_CHECK_REPLY", "False"), False)
MAX_LIST_ELM = environ.get("MAX_LIST_ELM", None)
Expand Down
12 changes: 6 additions & 6 deletions script.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@ class Script(object):
<b>Here Is The Help For My Commands.</b>"""

ABOUT_TXT = """<b>➥ My name: {}
➥ Creator: <a href='https://t.me/zautekm'>Zaute Km</a>
➥ Creator: <a href='https://t.me/tamilblasterslinkz'>Tamil Blasters</a>
➥ Library: <a href='https://docs.pyrogram.org/'>Pyrogram</a>
➥ Language: Python 𝟹
➥ Data Base: <a href='https://www.mongodb.com/'>MongoDB</a>
➥ Bot Server: <a href='https://heroku.com'>Heroku</a>
➥ Bot Server: <a href=Heroku></a>
➥ Build Status: v2.0.1 [ Beta ]"""

SOURCE_TXT = """<b>Source:</b>
IMDb is a Open source project.
Source: <a href='https://github.com/josprojects/tgmoviebot'>GitHub - Click here 👈</a>
Source: <a href=>GitHub - Click here 👈</a>

<b>DEVS:</b>
- <a href='https://t.me/josprojects'>Jos Projects</a>
- <a href='https://t.me/Tamilblasterslinkz'>Tamil Blasters</a>

<b>SUPPORT GROUP</b>
- <a href='https://t.me/+y53tWFUw6Q43NzE9'>Jos Movie Club</a>"""
- <a href='https://t.me/rcmovierequest'>Rc movies Request</a>"""

MANUALFILTER_TXT = """Help: <b>Filters</b>

Expand Down Expand Up @@ -279,7 +279,7 @@ class Script(object):
• /short <code>(link)</code> - I will send the shorted links.

<b>Example:</b>
<code>/short https://t.me/josprojects</code>
<code>/short https://t.me/Tamilblasterslinkz</code>

<b>NOTE:</b>
• IMDb should have admin privillage.
Expand Down