mirror of
https://github.com/Xtao-Labs/iShotaBot.git
synced 2024-11-16 04:35:55 +00:00
✨ fanbox 显示金额
This commit is contained in:
parent
57d12e85ef
commit
622c84ab8b
@ -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),
|
||||
|
@ -79,5 +79,5 @@ class Post(BaseModel):
|
||||
f"<b>Fanbox Post Info</b>\n\n"
|
||||
f"<code>{self.excerpt.strip()}</code>\n\n"
|
||||
f'<a href="{self.user_url}">{self.user.name}</a> 发表于 {self.create_time}\n'
|
||||
f"❤️ {self.likeCount}"
|
||||
f"❤️ {self.likeCount}・{self.feeRequired} 日元"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user