diff --git a/misskaty/helper/http.py b/misskaty/helper/http.py
index e385c76a..3345a068 100644
--- a/misskaty/helper/http.py
+++ b/misskaty/helper/http.py
@@ -9,6 +9,7 @@ session = ClientSession()
# HTTPx Async Client
http = httpx.AsyncClient(
http2=True,
+ verify=False,
timeout=httpx.Timeout(40),
)
diff --git a/misskaty/helper/media_helper.py b/misskaty/helper/media_helper.py
index 6a0a83ca..54d0cd51 100644
--- a/misskaty/helper/media_helper.py
+++ b/misskaty/helper/media_helper.py
@@ -3,13 +3,13 @@ import os
import shlex
from typing import Tuple
+from misskaty import BOT_USERNAME
from telegraph.aio import Telegraph
from utils import LOGGER
async def post_to_telegraph(is_media: bool, title=None, content=None, media=None):
telegraph = Telegraph()
- await telegraph.create_account(short_name='MissKaty')
if is_media:
"""Create a Telegram Post Foto/Video"""
response = await telegraph.upload_file(media)
@@ -18,8 +18,8 @@ async def post_to_telegraph(is_media: bool, title=None, content=None, media=None
response = await telegraph.create_page(
title,
html_content=content,
- author_url="https://t.me/MissKatyPyro",
- author_name="MissKatyBot"
+ author_url=f"https://t.me/{BOT_USERNAME}",
+ author_name=BOT_USERNAME
)
return response['url']
diff --git a/misskaty/plugins/paste.py b/misskaty/plugins/paste.py
index fac89f45..8cef08b1 100644
--- a/misskaty/plugins/paste.py
+++ b/misskaty/plugins/paste.py
@@ -114,7 +114,7 @@ async def telegraph_paste(_, message):
return await editPesan(msg, "`File Not Supported !`")
elif reply and (reply.text or reply.caption):
title = message.text.split(None, 1)[1] if len(message.command) > 1 else "MissKaty Paste"
- data = reply.text.html or reply.caption.html
+ data = reply.text.html.replace("\n", "
") or reply.caption.html.replace("\n", "
")
elif not reply and len(message.command) >= 2:
title = "MissKaty Paste"
data = message.text.split(None, 1)[1]
diff --git a/misskaty/plugins/web_scraper.py b/misskaty/plugins/web_scraper.py
index 81b060c9..dcd833d6 100644
--- a/misskaty/plugins/web_scraper.py
+++ b/misskaty/plugins/web_scraper.py
@@ -378,7 +378,7 @@ async def lk21_s(client, message):
keyboard.row(
InlineButton("❌ Close", f"close#{message.from_user.id}")
)
- await editPesan(pesan, lkres, reply_markup=keyboard)
+ await editPesan(pesan, lkres, disable_web_page_preview=True, reply_markup=keyboard)
# Pahe CMD
@app.on_message(filters.command(['pahe'], COMMAND_HANDLER))