SetChatBackground constructor

const SetChatBackground({
  1. required int chatId,
  2. InputBackground? background,
  3. BackgroundType? type,
  4. required int darkThemeDimming,
  5. 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

Implementation

const SetChatBackground({
  required this.chatId,
  this.background,
  this.type,
  required this.darkThemeDimming,
  required this.onlyForSelf,
});