Struct miraie::messages::group::GroupMessage [−][src]
pub struct GroupMessage { pub sender: GroupMember, pub message: MessageChain, }
Expand description
群聊消息
Fields
sender: GroupMember
消息的发送者
message: MessageChain
消息本体
Trait Implementations
type Sender = GroupMember
type Sender = GroupMember
发送者的类型,对于私聊类型就是 crate::messages::friend::FriendMember
,
对于群聊是 crate::messages::group::GroupMember
;
这两者都实现了 Into<QQ>
Read more
转换为 MessageChain
获取本聊天的后续消息。 如果是群聊,则返回当前群聊的任意后续消息; 如果是私聊,则返回当前私聊的任意后续消息。 Read more
获取这条消息发送者在本聊天中发送的后续消息
回复这条消息,产生“引用”。
fn reply_unquote<'life0, 'life1, 'async_trait>(
&'life0 self,
message: impl Into<MessageChain> + Send + 'static,
bot: &'life1 Bot
) -> Pin<Box<dyn Future<Output = Result<SendMessageResponse>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn reply_unquote<'life0, 'life1, 'async_trait>(
&'life0 self,
message: impl Into<MessageChain> + Send + 'static,
bot: &'life1 Bot
) -> Pin<Box<dyn Future<Output = Result<SendMessageResponse>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
不引用,直接回复这条消息
返回一条消息并等待回复,默认超时 10s Read more
返回一条消息并等待回复
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for GroupMessage
impl Send for GroupMessage
impl Sync for GroupMessage
impl Unpin for GroupMessage
impl UnwindSafe for GroupMessage
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V