vaegram 0.3.0

Telegram MTProto client library for users and bots
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::create_business_chat_link::check_slug;
use crate::Client;
use crate::errors::Result;
use crate::methods::accepted;
use crate::raw::functions;

impl Client {
    /// Deletes a business chat link by its slug. Fails with `Error::InvalidArgument` if `slug` is empty.
    pub async fn delete_business_chat_link(&self, slug: impl Into<String>) -> Result<()> {
        let slug = slug.into();
        check_slug(&slug)?;
        accepted(self.invoke(&functions::account::DeleteBusinessChatLink { slug }).await?)
    }
}