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
use crate::Client;
use crate::methods::GetChatGifts;
use crate::types::PeerRef;

impl Client {
    /// Lists the gifts on a user's profile.
    ///
    /// Same request as [`Client::get_chat_gifts`], with the same filters.
    pub fn get_user_gifts(&self, user_id: impl Into<PeerRef>) -> GetChatGifts<'_> {
        GetChatGifts::new(self, Some(user_id.into()), None)
    }
}