[][src]Trait coolq_sdk_rust::targets::message::SendMessage

pub trait SendMessage {
    fn send(&self, msg: impl ToString) -> Result<Convert<i32>>;

    fn send_message(&self, msg: impl ToString) -> Result<i32> { ... }
fn send_rps(&self) -> Result<i32> { ... }
fn send_dice(&self) -> Result<i32> { ... }
fn send_shake(&self) -> Result<i32> { ... }
fn send_anonymous(&self, ignore: bool, msg: impl ToString) -> Result<i32> { ... }
fn send_location(
        &self,
        latitude: f32,
        longitude: f32,
        title: &str,
        content: &str
    ) -> Result<i32> { ... }
fn send_music(&self, _type: &str, id: i32, style: i32) -> Result<i32> { ... }
fn send_music_custom(
        &self,
        url: &str,
        audio: &str,
        title: &str,
        content: &str,
        image: &str
    ) -> Result<i32> { ... }
fn send_share(
        &self,
        url: &str,
        title: &str,
        content: &str,
        image: &str
    ) -> Result<i32> { ... }
fn at(&self, user_id: i64, msg: impl ToString) -> Result<i32> { ... } }

Required methods

fn send(&self, msg: impl ToString) -> Result<Convert<i32>>

Loading content...

Provided methods

fn send_message(&self, msg: impl ToString) -> Result<i32>

@return msg id

fn send_rps(&self) -> Result<i32>

type参数暂不支持

fn send_dice(&self) -> Result<i32>

type参数暂不支持

fn send_shake(&self) -> Result<i32>

fn send_anonymous(&self, ignore: bool, msg: impl ToString) -> Result<i32>

fn send_location(
    &self,
    latitude: f32,
    longitude: f32,
    title: &str,
    content: &str
) -> Result<i32>

fn send_music(&self, _type: &str, id: i32, style: i32) -> Result<i32>

fn send_music_custom(
    &self,
    url: &str,
    audio: &str,
    title: &str,
    content: &str,
    image: &str
) -> Result<i32>

fn send_share(
    &self,
    url: &str,
    title: &str,
    content: &str,
    image: &str
) -> Result<i32>

fn at(&self, user_id: i64, msg: impl ToString) -> Result<i32>

Loading content...

Implementors

impl SendMessage for Group[src]

impl SendMessage for GroupMember[src]

impl SendMessage for User[src]

Loading content...