Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加消息的引用内容 #218

Merged
merged 5 commits into from
Nov 12, 2023
Merged

添加消息的引用内容 #218

merged 5 commits into from
Nov 12, 2023

Conversation

DancingSnow0517
Copy link
Contributor

现在可以直接在 Message 获取引用内容

# 先判断 quote 是否非 None, None 代表消息不存在引用
if msg.quote:
    # 引用原文的 msg_id
    print(msg.quote.id)
    # 引用原文的内容
    print(msg.quote.content)
    # 引用原文的作者id
    print(msg.quote.author.id)

khl/message.py Outdated Show resolved Hide resolved
khl/message.py Outdated Show resolved Hide resolved
Copy link
Owner

@TWT233 TWT233 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@TWT233 TWT233 merged commit 0e0aa17 into TWT233:main Nov 12, 2023
1 of 2 checks passed
@DancingSnow0517 DancingSnow0517 deleted the quote branch November 13, 2023 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants