diff --git a/defs/fanbox.py b/defs/fanbox.py index b6a27f1..a52b207 100644 --- a/defs/fanbox.py +++ b/defs/fanbox.py @@ -90,7 +90,8 @@ async def parse_fanbox_post(url: str, message: Message): if post.coverImageUrl: group = message.chat.type == ChatType.SUPERGROUP await bot.send_photo( - post.coverImageUrl, + chat_id=message.chat.id, + photo=post.coverImageUrl, caption=post.text, parse_mode=ParseMode.HTML, reply_markup=await gen_post_button(post), @@ -118,7 +119,8 @@ async def parse_fanbox_user(url: str, message: Message) -> None: if user.coverImageUrl: group = message.chat.type == ChatType.SUPERGROUP await bot.send_photo( - user.coverImageUrl, + chat_id=message.chat.id, + photo=user.coverImageUrl, caption=user.text, parse_mode=ParseMode.HTML, reply_markup=await gen_user_button(user), diff --git a/models/apis/fanbox.py b/models/apis/fanbox.py index 14d5d07..1139060 100644 --- a/models/apis/fanbox.py +++ b/models/apis/fanbox.py @@ -79,5 +79,5 @@ class Post(BaseModel): f"Fanbox Post Info\n\n" f"{self.excerpt.strip()}\n\n" f'{self.user.name} 发表于 {self.create_time}\n' - f"❤️ {self.likeCount}" + f"❤️ {self.likeCount}・{self.feeRequired} 日元" )