Struct teloxide_core::payloads::SetChatPhoto
source · pub struct SetChatPhoto {
pub chat_id: Recipient,
pub photo: InputFile,
}
Expand description
Use this method to set a new profile photo for the chat. Photos can’t be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns True on success.
Fields§
§chat_id: Recipient
Unique identifier for the target chat or username of the target channel (in the format @channelusername
)
photo: InputFile
New chat photo, uploaded using multipart/form-data
Implementations§
Trait Implementations§
source§impl Clone for SetChatPhoto
impl Clone for SetChatPhoto
source§impl Debug for SetChatPhoto
impl Debug for SetChatPhoto
source§impl MultipartPayload for SetChatPhoto
impl MultipartPayload for SetChatPhoto
fn copy_files(&self, into: &mut dyn FnMut(InputFile))
fn move_files(&mut self, into: &mut dyn FnMut(InputFile))
source§impl Payload for SetChatPhoto
impl Payload for SetChatPhoto
source§fn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
If this payload may take long time to execute (e.g.
GetUpdates
with
big timeout
), the minimum timeout that should be used.