pub struct WechatCpGroupRobot<'a, T: SessionStore> { /* private fields */ }Expand description
微信群机器人消息发送api 文档地址:文档
Implementations§
Source§impl<'a, T: SessionStore> WechatCpGroupRobot<'a, T>
impl<'a, T: SessionStore> WechatCpGroupRobot<'a, T>
pub fn new(client: &WechatCpClient<T>) -> WechatCpGroupRobot<'_, T>
Sourcepub async fn send_text(
&self,
content: &str,
mentioneds: Vec<String>,
mobiles: Vec<String>,
) -> LabradorResult<WechatCommonResponse>
pub async fn send_text( &self, content: &str, mentioneds: Vec<String>, mobiles: Vec<String>, ) -> LabradorResult<WechatCommonResponse>
发送text类型的消息
Sourcepub async fn send_text_with_url(
&self,
webhook_url: &str,
content: &str,
mentioneds: Vec<String>,
mobiles: Vec<String>,
) -> LabradorResult<WechatCommonResponse>
pub async fn send_text_with_url( &self, webhook_url: &str, content: &str, mentioneds: Vec<String>, mobiles: Vec<String>, ) -> LabradorResult<WechatCommonResponse>
发送text类型的消息
Sourcepub async fn send_markdown(
&self,
content: &str,
) -> LabradorResult<WechatCommonResponse>
pub async fn send_markdown( &self, content: &str, ) -> LabradorResult<WechatCommonResponse>
发送markdown类型的消息
Sourcepub async fn send_markdown_with_url(
&self,
webhook_url: &str,
content: &str,
) -> LabradorResult<WechatCommonResponse>
pub async fn send_markdown_with_url( &self, webhook_url: &str, content: &str, ) -> LabradorResult<WechatCommonResponse>
发送markdown类型的消息
Sourcepub async fn send_image(
&self,
base64: &str,
md5: &str,
) -> LabradorResult<WechatCommonResponse>
pub async fn send_image( &self, base64: &str, md5: &str, ) -> LabradorResult<WechatCommonResponse>
发送image类型的消息
Sourcepub async fn send_image_with_url(
&self,
webhook_url: &str,
base64: &str,
md5: &str,
) -> LabradorResult<WechatCommonResponse>
pub async fn send_image_with_url( &self, webhook_url: &str, base64: &str, md5: &str, ) -> LabradorResult<WechatCommonResponse>
发送image类型的消息
Sourcepub async fn send_news(
&self,
articles: Vec<WechatCpNewArticle>,
) -> LabradorResult<WechatCommonResponse>
pub async fn send_news( &self, articles: Vec<WechatCpNewArticle>, ) -> LabradorResult<WechatCommonResponse>
发送news类型的消息
Sourcepub async fn send_news_with_url(
&self,
webhook_url: &str,
articles: Vec<WechatCpNewArticle>,
) -> LabradorResult<WechatCommonResponse>
pub async fn send_news_with_url( &self, webhook_url: &str, articles: Vec<WechatCpNewArticle>, ) -> LabradorResult<WechatCommonResponse>
发送news类型的消息
Trait Implementations§
Source§impl<'a, T: Clone + SessionStore> Clone for WechatCpGroupRobot<'a, T>
impl<'a, T: Clone + SessionStore> Clone for WechatCpGroupRobot<'a, T>
Source§fn clone(&self) -> WechatCpGroupRobot<'a, T>
fn clone(&self) -> WechatCpGroupRobot<'a, T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a, T> Freeze for WechatCpGroupRobot<'a, T>
impl<'a, T> RefUnwindSafe for WechatCpGroupRobot<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for WechatCpGroupRobot<'a, T>where
T: Sync,
impl<'a, T> Sync for WechatCpGroupRobot<'a, T>where
T: Sync,
impl<'a, T> Unpin for WechatCpGroupRobot<'a, T>
impl<'a, T> UnwindSafe for WechatCpGroupRobot<'a, T>where
T: RefUnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more