Spaces:
Sleeping
Sleeping
Captain Ezio
commited on
Commit
·
6e5f67b
1
Parent(s):
c32e547
Looks good
Browse files- Powers/plugins/utils.py +2 -1
Powers/plugins/utils.py
CHANGED
@@ -10,8 +10,8 @@ from gpytranslate import Translator
|
|
10 |
from pyrogram import enums, filters
|
11 |
from Powers.utils.http_helper import *
|
12 |
from Powers.database.users_db import Users
|
13 |
-
from Powers.utils.custom_filters import command
|
14 |
from pyrogram.errors import MessageTooLong
|
|
|
15 |
from Powers.utils.clean_file import remove_markdown_and_html
|
16 |
from wikipedia.exceptions import PageError, DisambiguationError
|
17 |
from pyrogram.types import Message, InlineKeyboardButton, InlineKeyboardMarkup
|
@@ -242,6 +242,7 @@ async def github(_, m: Message):
|
|
242 |
pattern = re.compile(r"^text/|json$|yaml$|xml$|toml$|x-sh$|x-shellscript$")
|
243 |
BASE = "https://batbin.me/"
|
244 |
|
|
|
245 |
async def paste(content: str):
|
246 |
resp = await post(f"{BASE}api/v2/paste", data=content)
|
247 |
if not resp["success"]:
|
|
|
10 |
from pyrogram import enums, filters
|
11 |
from Powers.utils.http_helper import *
|
12 |
from Powers.database.users_db import Users
|
|
|
13 |
from pyrogram.errors import MessageTooLong
|
14 |
+
from Powers.utils.custom_filters import command
|
15 |
from Powers.utils.clean_file import remove_markdown_and_html
|
16 |
from wikipedia.exceptions import PageError, DisambiguationError
|
17 |
from pyrogram.types import Message, InlineKeyboardButton, InlineKeyboardMarkup
|
|
|
242 |
pattern = re.compile(r"^text/|json$|yaml$|xml$|toml$|x-sh$|x-shellscript$")
|
243 |
BASE = "https://batbin.me/"
|
244 |
|
245 |
+
|
246 |
async def paste(content: str):
|
247 |
resp = await post(f"{BASE}api/v2/paste", data=content)
|
248 |
if not resp["success"]:
|