vaegram 0.2.0

Telegram MTProto client library for users and bots
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::Client;
use crate::errors::Result;
use crate::types::{ChatInviteLink, PeerRef};

impl Client {
    /// Renames a subscription link, the only thing Telegram lets you change on one.
    pub async fn edit_chat_subscription_invite_link(
        &self,
        chat_id: impl Into<PeerRef>,
        invite_link: impl Into<String>,
        name: impl Into<String>,
    ) -> Result<ChatInviteLink> {
        self.edit_chat_invite_link(chat_id, invite_link).name(name).await
    }
}