create_instance

Function create_instance 

Source
pub fn create_instance(bot_token: &str, chat_id: &str) -> BotInstance
Expand description

Create an instance to interact with APIs. Return BotInstance.

ยงArguments

  • bot_token - a string of bot token
  • chat_id - a chat id string to send message