Function rustygram::create_bot
source · pub fn create_bot(bot_token: &str, chat_id: &str) -> Bot
Expand description
Create a Bot to interact with APIs.
Returns a Bot
configured with the provided bot token and chat id.
§Arguments
bot_token
- a string of bot tokenchat_id
- a chat id string to send message