SetChatBackground class final

Sets the background in a specific chat. Supported only in private and secret chats with non-deleted users, and in chats with sufficient boost level and can_change_info administrator right

Returns Ok.

Inheritance

Constructors

SetChatBackground({required int chatId, InputBackground? background, BackgroundType? type, required int darkThemeDimming, required bool onlyForSelf})
Sets the background in a specific chat. Supported only in private and secret chats with non-deleted users, and in chats with sufficient boost level and can_change_info administrator right
const

Properties

background → InputBackground?
The input background to use; pass null to create a new filled or chat theme background
final
canBeCalledSynchronously → bool
Whether TDLib documents this request as callable through td_execute.
no setterinherited
chatId → int
Chat identifier
final
darkThemeDimming → int
Dimming of the background in dark themes, as a percentage; 0-100. Applied only to Wallpaper and Fill types of background
final
hashCode → int
The hash code for this object.
no setterinherited
onlyForSelf → bool
Pass true to set background only for self; pass false to set background for all chat users. Always false for backgrounds set in boosted chats. Background can be set for both users only by Telegram Premium users and if set background isn't of the type inputBackgroundPrevious
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → BackgroundType?
Background type; pass null to use default background type for the chosen background; backgroundTypeChatTheme isn't supported for private and secret chats. Use chatBoostLevelFeatures.chat_theme_background_count and chatBoostLevelFeatures.can_set_custom_background to check whether the background type can be set in the boosted chat
final

Methods

copyWith({int? chatId, InputBackground? background()?, BackgroundType? type()?, int? darkThemeDimming, bool? onlyForSelf}) → SetChatBackground
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
getConstructor() → String
TDLib function name, e.g. getMe.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson([dynamic extra]) → Map<String, dynamic>
Converts this request to TDLib JSON, tagged with extra if given.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

CONSTRUCTOR → const String
TDLib type name.