Package org.drinkless.tdlib
Class TdApi.SetChatPhoto
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.TdApi.SetChatPhoto
-
- Enclosing class:
- TdApi
public static class TdApi.SetChatPhoto extends TdApi.Function
Changes the photo of a chat. Supported only for basic groups, supergroups and channels. Requires canChangeInfo administrator right.Returns
Ok
-
-
Field Summary
Fields Modifier and Type Field Description longchatIdChat identifier.static intCONSTRUCTORIdentifier uniquely determining type of the object.TdApi.InputChatPhotophotoNew chat photo; pass null to delete the chat photo.
-
Constructor Summary
Constructors Constructor Description SetChatPhoto()Default constructor for a function, which changes the photo of a chat.SetChatPhoto(long chatId, TdApi.InputChatPhoto photo)Creates a function, which changes the photo of a chat.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
chatId
public long chatId
Chat identifier.
-
photo
public TdApi.InputChatPhoto photo
New chat photo; pass null to delete the chat photo.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SetChatPhoto
public SetChatPhoto()
Default constructor for a function, which changes the photo of a chat. Supported only for basic groups, supergroups and channels. Requires canChangeInfo administrator right.Returns
Ok
-
SetChatPhoto
public SetChatPhoto(long chatId, TdApi.InputChatPhoto photo)Creates a function, which changes the photo of a chat. Supported only for basic groups, supergroups and channels. Requires canChangeInfo administrator right.Returns
Ok- Parameters:
chatId- Chat identifier.photo- New chat photo; pass null to delete the chat photo.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-