pub struct MessageService {
pub config: Config,
}Fields§
§config: ConfigImplementations§
source§impl MessageService
impl MessageService
sourcepub async fn create(
&self,
create_message_request: CreateMessageRequest,
option: Option<RequestOption>,
) -> SDKResult<BaseResponse<Message>>
pub async fn create( &self, create_message_request: CreateMessageRequest, option: Option<RequestOption>, ) -> SDKResult<BaseResponse<Message>>
发送消息
给指定用户或者会话发送消息,支持文本、富文本、可交互的消息卡片、群名片、个人名片、图片、 视频、音频、文件、表情包。
sourcepub async fn list(
&self,
list_message_request: ListMessageRequest,
option: Option<RequestOption>,
) -> SDKResult<BaseResponse<ListMessageRespData>>
pub async fn list( &self, list_message_request: ListMessageRequest, option: Option<RequestOption>, ) -> SDKResult<BaseResponse<ListMessageRespData>>
pub fn list_iter( &self, list_message_request: ListMessageRequest, option: Option<RequestOption>, ) -> ListMessageIterator<'_>
Auto Trait Implementations§
impl Freeze for MessageService
impl !RefUnwindSafe for MessageService
impl Send for MessageService
impl Sync for MessageService
impl Unpin for MessageService
impl !UnwindSafe for MessageService
Blanket Implementations§
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