diff --git a/README.md b/README.md index cdfe8fc..afc887c 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ We have to use Bot for Inline Search & Userbot for Searching in Channels. So bot
Deploy to Heroku


- + Deploy

diff --git a/configs.py b/configs.py index 0e0a461..9f31505 100644 --- a/configs.py +++ b/configs.py @@ -4,18 +4,18 @@ class Config(object): - API_ID = int(os.environ.get("API_ID", 12345)) - API_HASH = os.environ.get("API_HASH", "") - BOT_TOKEN = os.environ.get("BOT_TOKEN", "") + API_ID = int(os.environ.get("API_ID", β€œ11484651”)) + API_HASH = os.environ.get("API_HASH", "9d058bf3591ddba2870ea61836571eae") + BOT_TOKEN = os.environ.get("BOT_TOKEN", "5765769840:AAF3X6xQ6Hr15CR6rk4pG4Ymi2VaeVO14T0") BOT_SESSION_NAME = os.environ.get("BOT_SESSION_NAME", "MdiskSearchBot") USER_SESSION_STRING = os.environ.get("USER_SESSION_STRING", "") - CHANNEL_ID = int(os.environ.get("CHANNEL_ID", -100)) + CHANNEL_ID = int(os.environ.get("CHANNEL_ID", -1001144412978)) BOT_USERNAME = os.environ.get("BOT_USERNAME") BOT_OWNER = int(os.environ.get("BOT_OWNER")) UPDATES_CHANNEL = os.environ.get("UPDATES_CHANNEL", None) ABOUT_BOT_TEXT = """This is Mdisk Search Bot. -πŸ€– My Name: Mdisk Search Robot +πŸ€– My Name: I Popcorn Search Movie Bot πŸ“ Language : Python V3 @@ -23,10 +23,10 @@ class Config(object): πŸ“‘ Server: Heroku -πŸ‘¨β€πŸ’» Created By: Cynite +πŸ‘¨β€πŸ’» Created By: Jayesh """ - ABOUT_HELP_TEXT = """πŸ‘¨β€πŸ’» Developer : Click Me + ABOUT_HELP_TEXT = """πŸ‘¨β€πŸ’» Developer : Click Me If You Want Your Own Bot Like This Then You Can Contact Our Developer. """ @@ -34,22 +34,22 @@ class Config(object): HOME_TEXT = """ Hey! {}πŸ˜…, -I'm Mdisk Search Robot.πŸ€– +I'm I Popcorn Search Movie Bot.πŸ€– I Can Search πŸ” What You Want❗ -Made With ❀ By @Cyniteofficial +Made With ❀ By @Jayesh_Rajput1 """ START_MSG = """ Hey! {}πŸ˜…, -I'm Mdisk Search Robot.πŸ€– +I'm I Popcorn Search Movie Bot.πŸ€– I Can Search πŸ” What You Want❗ -Made With ❀ By @Cyniteofficial +Made With ❀ By @Jayesh_Rajput1 """ diff --git a/main.py b/main.py index cad311b..fd23095 100644 --- a/main.py +++ b/main.py @@ -25,22 +25,22 @@ @Bot.on_message(filters.private & filters.command("start")) async def start_handler(_, event: Message): - await event.reply_photo("https://telegra.ph/file/165941ae764a56d6d9c89.jpg", + await event.reply_photo("https://telegra.ph/file/0c8a9bb6d36c3c071dbee.jpg", caption=Config.START_MSG.format(event.from_user.mention), reply_markup=InlineKeyboardMarkup([ - [InlineKeyboardButton("Our Channel", url="https://t.me/cynitemovies"), - InlineKeyboardButton("Creator", url="https://t.me/Cyniteofficial")], - [InlineKeyboardButton("Help", callback_data="Help_msg"), - InlineKeyboardButton("About", callback_data="About_msg")]])) + [InlineKeyboardButton("Our Channel 🍿", url="https://t.me/IPopcornchannel"), + InlineKeyboardButton("Our Group 🍿", url="https://t.me/iPopcornGroup")], + [InlineKeyboardButton("Help 😣", callback_data="Help_msg"), + InlineKeyboardButton("About βœ…", callback_data="About_msg")]])) @Bot.on_message(filters.private & filters.command("help")) async def help_handler(_, event: Message): await event.reply_text(Config.ABOUT_HELP_TEXT.format(event.from_user.mention), reply_markup=InlineKeyboardMarkup([ - [InlineKeyboardButton("Our Channel", url="https://t.me/iP_Movies"), - InlineKeyboardButton("Our Group", url="https://t.me/iPopcornMovieGroup"), - InlineKeyboardButton("About", callback_data="About_msg")] + [InlineKeyboardButton("Our Channel 🍿", url="https://t.me/IPopcornchannel"), + InlineKeyboardButton("Our Group 🍿", url="https://t.me/iPopcornGroup"), + InlineKeyboardButton("About βœ…", callback_data="About_msg")] ]) ) @@ -51,16 +51,16 @@ async def inline_handlers(_, event: Message): answers = f'**πŸ“‚ Results For ➠ {event.text} \n\nβ–°β–±β–°β–±β–°β–±β–°β–±β–°β–±β–°β–±β–°β–±\n➠ Type Only Movie Name With Correct Spelling.✍️\n➠ Add Year For Better Result.πŸ—“οΈ\nβ–°β–±β–°β–±β–°β–±β–°β–±β–°β–±β–°β–±β–°β–±\n\n**' async for message in User.search_messages(chat_id=Config.CHANNEL_ID, limit=50, query=event.text): if message.text: - thumb = None + thumb = yes f_text = message.text msg_text = message.text.html if "|||" in message.text: f_text = message.text.split("|||", 1)[0] msg_text = message.text.html.split("|||", 1)[0] - answers += f'**🍿 Title ➠ ' + '' + f_text.split("\n", 1)[0] + '' + '\n\nπŸ“œ About ➠ ' + '' + f_text.split("\n", 2)[-1] + ' \n\nβ–°β–±β–°β–±β–°β–±β–°β–±β–°β–±β–°β–±β–°β–±\nLink Will Auto Delete In 60Sec...⏰\nβ–°β–±β–°β–±β–°β–±β–°β–±β–°β–±β–°β–±β–°β–±\n\n**' + answers += f'**🍿 Title ➠ ' + '' + f_text.split("\n", 1)[0] + '' + '\n\nπŸ“œ About ➠ ' + '' + f_text.split("\n", 2)[-1] + ' \n\nβ–°β–±β–°β–±β–°β–±β–°β–±β–°β–±β–°β–±β–°β–±\nLink Will Auto Delete In 180Sec...⏰\nβ–°β–±β–°β–±β–°β–±β–°β–±β–°β–±β–°β–±β–°β–±\n\n**' try: msg = await event.reply_text(answers) - await asyncio.sleep(60) + await asyncio.sleep(180) await event.delete() await msg.delete() except: @@ -77,12 +77,12 @@ async def button(bot, cmd: CallbackQuery): reply_markup=InlineKeyboardMarkup( [ [ - InlineKeyboardButton("Our Channel", url="https://t.me/cyniteMovies"), - InlineKeyboardButton("Join", url="https://t.me/Technicalcynite") + InlineKeyboardButton("Our Channe 🍿", url="https://t.me/IPopcornchannel"), + InlineKeyboardButton("Join Group 🍿", url="https://t.me/iPopcornGroup") ], [ - InlineKeyboardButton("Creator", url="https://t.me/cyniteofficial"), - InlineKeyboardButton("Home", callback_data="gohome") + InlineKeyboardButton("Creator πŸ•΅οΈβ€β™‚οΈ", url="https://t.me/Jayesh_Rajput1"), + InlineKeyboardButton("Home 🏠", callback_data="gohome") ] ] ), @@ -95,12 +95,12 @@ async def button(bot, cmd: CallbackQuery): reply_markup=InlineKeyboardMarkup( [ [ - InlineKeyboardButton("About", callback_data="About_msg"), - InlineKeyboardButton("Our Channel", url="https://t.me/cyniteMovies") + InlineKeyboardButton("About βœ…", callback_data="About_msg"), + InlineKeyboardButton("Our Channel 🍿", url="https://t.me/IPopcornchannel") ], [ - InlineKeyboardButton("Owner", url="https://t.me/cyniteofficial"), - InlineKeyboardButton("Home", callback_data="gohome") + InlineKeyboardButton("Owner πŸ•΅οΈβ€β™‚οΈ", url="https://t.me/Jayesh_Rajput1"), + InlineKeyboardButton("Home βœ…", callback_data="gohome") ] ] ), @@ -113,12 +113,12 @@ async def button(bot, cmd: CallbackQuery): reply_markup=InlineKeyboardMarkup( [ [ - InlineKeyboardButton("Help", callback_data="Help_msg"), - InlineKeyboardButton("About", callback_data="About_msg") + InlineKeyboardButton("Help 😣", callback_data="Help_msg"), + InlineKeyboardButton("About βœ…", callback_data="About_msg") ], [ - InlineKeyboardButton("Support", url="https://t.me/cyniteofficial"), - InlineKeyboardButton("Channel", url="https://t.me/cynitemovies") + InlineKeyboardButton("Support βœ…", url="https://t.me/Jayesh_Rajput1"), + InlineKeyboardButton("Channel βœ…", url="https://t.me/IPopcornchannel") ] ] ), diff --git a/run cmd.txt b/run cmd.txt new file mode 100644 index 0000000..ca82f18 --- /dev/null +++ b/run cmd.txt @@ -0,0 +1 @@ +gunicorn app:app & python3 main.py