actix-telegram 0.0.5

telegram bot api lib based on actix
1
2
3
4
5
6
7
8
9
10
11
use crate::types::*;

/// Use this method to generate a new invite link for a chat; any previously generated link is revoked. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns the new invite link as String on success.
#[derive(Debug, Serialize, TelegramApi, Setters, New)]
#[return_type = "String"]
#[new(vis = "pub")]
#[set(vis = "pub")]
pub struct ExportChatInviteLink {
    /// Unique identifier for the target chat or username of the target channel (in the format @channelusername)
    pub(crate) chat_id: ChatIdOrUsername,
}