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::types::{PeerRef, Upload};

use super::SetProfilePhoto;

impl Client {
    /// Sets the profile photo of a bot the account owns.
    pub fn set_bot_profile_photo<'a>(
        &'a self,
        bot_id: impl Into<PeerRef>,
        photo: impl Into<Upload<'a>>,
    ) -> SetProfilePhoto<'a> {
        SetProfilePhoto::new(self, None, photo.into()).bot(bot_id.into())
    }
}