diff --git a/misskaty/plugins/dev.py b/misskaty/plugins/dev.py
index 544b99d2..ab45a506 100644
--- a/misskaty/plugins/dev.py
+++ b/misskaty/plugins/dev.py
@@ -27,7 +27,7 @@ from psutil import net_io_counters, virtual_memory
from pyrogram import Client
from pyrogram import __version__ as pyrover
from pyrogram import enums, filters
-from pyrogram.errors import FloodWait, MessageTooLong, PeerIdInvalid
+from pyrogram.errors import ChatSendPhotosForbidden, FloodWait, MessageTooLong, PeerIdInvalid
from pyrogram.raw.types import UpdateBotStopped
from pyrogram.types import (
InlineKeyboardButton,
@@ -123,11 +123,15 @@ async def log_file(_, ctx: Message, strings):
@app.on_message(filters.command(["donate"], COMMAND_HANDLER))
-async def donate(_, ctx: Message):
- await ctx.reply_photo(
- "https://img.yasirweb.eu.org/file/9427d61d6968b8ee4fb2f.jpg",
- caption=f"Hi {ctx.from_user.mention}, If you find this bot useful, you can make a donation to the account below. Because this bot server uses VPS and is not free. Thank You..\n\nIndonesian Payment:\nQRIS: https://img.yasirweb.eu.org/file/b1c86973ae4e55721983a.jpg (Yasir Store)\nMayar: https://yasirarism.mayar.link/payme\nBank Jago: 109641845083 (Yasir Aris M)\n\nFor international people can use PayPal to support me or via GitHub Sponsor:\nhttps://paypal.me/yasirarism\nhttps://github.com/sponsors/yasirarism\n\nSource: @BeriKopi",
- )
+async def donate(self: Client, ctx: Message):
+ try:
+ await ctx.reply_photo(
+ "https://img.yasirweb.eu.org/file/9427d61d6968b8ee4fb2f.jpg",
+ caption=f"Hi {ctx.from_user.mention}, If you find this bot useful, you can make a donation to the account below. Because this bot server uses VPS and is not free. Thank You..\n\nIndonesian Payment:\nQRIS: https://img.yasirweb.eu.org/file/b1c86973ae4e55721983a.jpg (Yasir Store)\nMayar: https://yasirarism.mayar.link/payme\nBank Jago: 109641845083 (Yasir Aris M)\n\nFor international people can use PayPal to support me or via GitHub Sponsor:\nhttps://paypal.me/yasirarism\nhttps://github.com/sponsors/yasirarism\n\nSource: @BeriKopi",
+ )
+ except ChatSendPhotosForbidden:
+ await self.send_message(LOG_CHANNEL, f"❗️ WARNING\nI'm leaving from {ctx.chat.id} since i didn't have sufficient admin permissions.")
+ await ctx.chat.leave()
@app.on_message(
diff --git a/misskaty/plugins/web_scraper.py b/misskaty/plugins/web_scraper.py
index 357fe0fb..0e0d5ed5 100644
--- a/misskaty/plugins/web_scraper.py
+++ b/misskaty/plugins/web_scraper.py
@@ -49,8 +49,8 @@ web = {
"movieku": "https://107.152.37.223",
"kusonime": "https://kusonime.com",
"lendrive": "https://lendrive.web.id",
- "samehadaku": "https://samehadaku.bio",
- "oplovers": "https://oploverz.top",
+ "samehadaku": "https://samehadaku.help",
+ "oplovers": "https://oploverz.red",
"nodrakor": "https://no-drakor.xyz",
}
@@ -381,7 +381,7 @@ async def getDataSavefilm21(msg, kueri, CurrentPage, user, strings):
async def getDataLendrive(msg, kueri, CurrentPage, user, strings):
if not SCRAP_DICT.get(msg.id):
try:
- if query:
+ if kueri:
data = await fetch.get(
f"{web['lendrive']}/?s={kueri}",
follow_redirects=True,