Function rustygram::send_message

source ·
pub async fn send_message(
    bot: &Bot,
    msg: &str,
    options: Option<SendMessageOption>
) -> Result<(), ErrorResult>
Expand description

Send message asynchronously. Return Result<(), ErrorResult>.

§Arguments

  • bot - Bot to send message to telegram’s chat
  • msg - message to send
  • options - options for sending message