- Enclosing class:
- TdApi
Changes the background in a specific
chat. Supported only in private and
secret chats with non-deleted users.
Returns
Ok-
Field Summary
FieldsModifier and TypeFieldDescriptionThe input background to use; pass null to create a new filled background or to remove the current background.longChat identifier.static final intintDimming of the background in dark themes, as a percentage; 0-100.Background type; pass null to remove the current background. -
Constructor Summary
ConstructorsConstructorDescriptionChanges the background in a specific chat.SetChatBackground(long chatId, TdApi.InputBackground background, TdApi.BackgroundType type, int darkThemeDimming) Changes the background in a specific chat.SetChatBackground(DataInput input) Changes the background in a specific chat. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toStringMethods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
chatId
public long chatIdChat identifier. -
background
The input background to use; pass null to create a new filled background or to remove the current background. -
type
Background type; pass null to remove the current background. -
darkThemeDimming
public int darkThemeDimmingDimming of the background in dark themes, as a percentage; 0-100. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
SetChatBackground
public SetChatBackground()Changes the background in a specific chat. Supported only in private and secret chats with non-deleted users. ReturnsOk -
SetChatBackground
public SetChatBackground(long chatId, TdApi.InputBackground background, TdApi.BackgroundType type, int darkThemeDimming) Changes the background in a specific chat. Supported only in private and secret chats with non-deleted users. ReturnsOk- Parameters:
chatId- long Chat identifier.background- InputBackground The input background to use; pass null to create a new filled background or to remove the current background.type- BackgroundType Background type; pass null to remove the current background.darkThemeDimming- int Dimming of the background in dark themes, as a percentage; 0-100.
-
SetChatBackground
Changes the background in a specific chat. Supported only in private and secret chats with non-deleted users. ReturnsOk- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructorin classTdApi.Object
-
serialize
- Specified by:
serializein classTdApi.Object- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-