Fixing some Minor Bugs [ #118 ]

-> Includes
• Fix ChatBot
• Fix Packkang

Co-authored-by: Danish <1-Danish00@ultroid.tech>
This commit is contained in:
Shubhendra Kushwaha
2021-07-28 17:39:44 +05:30
committed by GitHub
parent 9b282fd6e8
commit 273ac6a6d1
2 changed files with 3 additions and 3 deletions

View File

@@ -136,7 +136,7 @@ async def ChatActionsHandler(ult): # sourcery no-metrics
@ultroid_bot.on(events.NewMessage(incoming=True))
async def chatBot_replies(event):
if event.sender_id and chatbot_stats(event.chat.id, event.sender_id) and event.text:
if event.sender_id and chatbot_stats(event.chat_id, event.sender_id) and not event.media:
msg = get_chatbot_reply(event, event.text)
if msg:
await event.reply(msg)

View File

@@ -40,7 +40,7 @@ from os import remove
import cv2
import numpy as np
from PIL import Image, ImageDraw
from telethon import utils
from telethon.utils import get_input_document
from telethon.errors import ChatSendStickersForbiddenError, PackShortNameOccupiedError
from telethon.tl.types import (
DocumentAttributeFilename,
@@ -158,7 +158,7 @@ async def pack_kangish(_):
)
stiks = []
for i in _get_stiks.documents:
x = utils.get_input_document(i)
x = get_input_document(i)
stiks.append(
types.InputStickerSetItem(
document=x,