Captain Ezio commited on
Commit
6a7b90b
·
1 Parent(s): ccaf1c8

Update info.py

Browse files
Files changed (1) hide show
  1. Powers/plugins/info.py +6 -2
Powers/plugins/info.py CHANGED
@@ -248,11 +248,15 @@ async def chat_info_func(c: Gojo, message: Message):
248
  await m.delete()
249
  await sleep(2)
250
  return await message.reply_text(info_caption, disable_web_page_preview=True)
251
-
252
  photo = await c.download_media(photo_id)
253
  await m.delete()
254
  await sleep(2)
255
- await message.reply_photo(photo, caption=info_caption, quote=False)
 
 
 
 
256
  LOGGER.info(
257
  f"{message.from_user.id} fetched chat info of chat {chat} in {message.chat.id}"
258
  )
 
248
  await m.delete()
249
  await sleep(2)
250
  return await message.reply_text(info_caption, disable_web_page_preview=True)
251
+
252
  photo = await c.download_media(photo_id)
253
  await m.delete()
254
  await sleep(2)
255
+ if len(info_caption) >= 4096:
256
+ x = await message.reply_photo(photo)
257
+ await x.reply_text(info_caption)
258
+ else:
259
+ await message.reply_photo(photo, caption=info_caption, quote=False)
260
  LOGGER.info(
261
  f"{message.from_user.id} fetched chat info of chat {chat} in {message.chat.id}"
262
  )