mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-03 11:04:51 +00:00
FIxx (#31)
This commit is contained in:
parent
218db3f06f
commit
0e7924c8db
2 changed files with 7 additions and 7 deletions
|
|
@ -48,9 +48,9 @@ scheduler = AsyncIOScheduler(jobstores=jobstores, timezone=TZ)
|
||||||
|
|
||||||
app.start()
|
app.start()
|
||||||
user.start()
|
user.start()
|
||||||
BOT_ID = app.id
|
BOT_ID = app.me.id
|
||||||
BOT_NAME = app.first_name
|
BOT_NAME = app.me.first_name
|
||||||
BOT_USERNAME = app.username
|
BOT_USERNAME = app.me.username
|
||||||
UBOT_ID = user.id
|
UBOT_ID = user.me.id
|
||||||
UBOT_NAME = user.first_name
|
UBOT_NAME = user.me.first_name
|
||||||
UBOT_USERNAME = user.username
|
UBOT_USERNAME = user.me.username
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ __HELP__ = f"/ocr [reply to photo] - Read Text From Image"
|
||||||
@use_chat_lang()
|
@use_chat_lang()
|
||||||
async def ocr(_, m, strings):
|
async def ocr(_, m, strings):
|
||||||
reply = m.reply_to_message
|
reply = m.reply_to_message
|
||||||
if not reply or not reply.photo and not reply.sticker:
|
if not reply or not reply.photo and (reply.document and not reply.document.mime_type.startswith("image")) and not reply.sticker:
|
||||||
return await kirimPesan(m, strings("no_photo").format(cmd=m.command[0]), quote=True)
|
return await kirimPesan(m, strings("no_photo").format(cmd=m.command[0]), quote=True)
|
||||||
msg = await kirimPesan(m, strings("read_ocr"), quote=True)
|
msg = await kirimPesan(m, strings("read_ocr"), quote=True)
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue