Struct slack_chat_api::bots::Bots
source · pub struct Bots {
pub client: Client,
}Fields§
§client: ClientImplementations§
source§impl Bots
impl Bots
sourcepub async fn info(&self, bot: &str) -> Result<BotsInfoSchema>
pub async fn info(&self, bot: &str) -> Result<BotsInfoSchema>
This function performs a GET to the /bots.info endpoint.
Gets information about a bot user.
FROM: https://api.slack.com/methods/bots.info
Parameters:
token: &str– Authentication token. Requires scope:users:read.bot: &str– Bot user to get info on.