mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-03 19:14:51 +00:00
Minor fix today
This commit is contained in:
parent
ec2f0d4bc8
commit
f96df01b28
3 changed files with 6 additions and 1 deletions
|
|
@ -65,6 +65,8 @@ async def anonymous_admin_verification(
|
||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
member = await CallbackQuery.message.chat.get_member(CallbackQuery.from_user.id)
|
member = await CallbackQuery.message.chat.get_member(CallbackQuery.from_user.id)
|
||||||
|
except pyrogram.errors.exceptions.bad_request_400.UserNotParticipant:
|
||||||
|
return await CallbackQuery.answer("You're not member of this group.", show_alert=True)
|
||||||
except pyrogram.errors.exceptions.forbidden_403.ChatAdminRequired:
|
except pyrogram.errors.exceptions.forbidden_403.ChatAdminRequired:
|
||||||
return await CallbackQuery.message.edit_text(
|
return await CallbackQuery.message.edit_text(
|
||||||
"I must be admin to execute this task, or i will leave from this group.",
|
"I must be admin to execute this task, or i will leave from this group.",
|
||||||
|
|
|
||||||
|
|
@ -411,7 +411,7 @@ async def inline_menu(self, inline_query: InlineQuery):
|
||||||
link = result.get("html_url")
|
link = result.get("html_url")
|
||||||
deskripsi = result.get("description")[:25] if len(result.get("description")) > 25 else result.get("description")
|
deskripsi = result.get("description")[:25] if len(result.get("description")) > 25 else result.get("description")
|
||||||
lang = result.get("language")
|
lang = result.get("language")
|
||||||
message_text = f"🔗: {result.get('html_url')}\n│\n└─🍴Forks: {result.get('forks')} ┃┃ 🌟Stars: {sraeo.get('stargazers_count')}\n\n"
|
message_text = f"🔗: {result.get('html_url')}\n│\n└─🍴Forks: {result.get('forks')} ┃┃ 🌟Stars: {result.get('stargazers_count')}\n\n"
|
||||||
message_text += f"<b>Description:</b> {deskripsi}\n"
|
message_text += f"<b>Description:</b> {deskripsi}\n"
|
||||||
message_text += f"<b>Language:</b> {lang}"
|
message_text += f"<b>Language:</b> {lang}"
|
||||||
data.append(
|
data.append(
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
SOFTWARE.
|
SOFTWARE.
|
||||||
"""
|
"""
|
||||||
import asyncio
|
import asyncio
|
||||||
|
from logging import getLogger
|
||||||
|
|
||||||
from pyrogram import filters
|
from pyrogram import filters
|
||||||
from pyrogram.errors import ChatAdminRequired, ChatNotModified, FloodWait
|
from pyrogram.errors import ChatAdminRequired, ChatNotModified, FloodWait
|
||||||
|
|
@ -33,6 +34,8 @@ from misskaty.core.decorator.permissions import adminsOnly, list_admins
|
||||||
from misskaty.helper.functions import get_urls_from_text
|
from misskaty.helper.functions import get_urls_from_text
|
||||||
from misskaty.vars import COMMAND_HANDLER, SUDO
|
from misskaty.vars import COMMAND_HANDLER, SUDO
|
||||||
|
|
||||||
|
LOGGER = getLogger("MissKaty")
|
||||||
|
|
||||||
__MODULE__ = "Locks"
|
__MODULE__ = "Locks"
|
||||||
__HELP__ = """
|
__HELP__ = """
|
||||||
Commands: /lock | /unlock | /locks [No Parameters Required]
|
Commands: /lock | /unlock | /locks [No Parameters Required]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue