actix-telegram 0.0.5

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

/// Use this method to get information about a member of a chat. Returns a ChatMember object on success.
#[derive(Debug, Serialize, TelegramApi, Setters, New)]
#[return_type = "ChatMember"]
#[new(vis = "pub")]
#[set(vis = "pub")]
pub struct GetChatMember {
    /// Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)
    pub(crate) chat_id: ChatIdOrUsername,
    /// Unique identifier of the target user
    pub(crate) user_id: Integer,
}