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 chatmsg
- message to sendoptions
- options for sending message