♻️ Change cover order
This commit is contained in:
parent
daa43b74fe
commit
f58313ded0
@ -106,10 +106,14 @@ async def get_character(name: str):
|
||||
f"<b>称号:</b>{data['title']}\n" \
|
||||
f"<b>CV:</b>{data['cv']['chinese']}\n" \
|
||||
f"<b>简介:</b>{data['description']}"
|
||||
try:
|
||||
if "card" in data["images"]:
|
||||
url = data["images"]["card"]
|
||||
except KeyError:
|
||||
elif "cover2" in data["images"]:
|
||||
url = data["images"]["cover2"]
|
||||
elif "icon" in data["images"]:
|
||||
url = data["images"]["icon"]
|
||||
else:
|
||||
url = None
|
||||
return result, url
|
||||
|
||||
|
||||
|
@ -1,8 +1,4 @@
|
||||
from configparser import RawConfigParser
|
||||
from os import getcwd, sep
|
||||
|
||||
from ci import admin_id
|
||||
from defs.redis_load import redis, redis_status
|
||||
from pyrogram import Client
|
||||
from pyrogram.types import Message, CallbackQuery, InlineKeyboardMarkup, InlineKeyboardButton
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user