setChatTheme method

Future<Result<UpdatesBase>> setChatTheme({
  1. required InputPeerBase peer,
  2. required InputChatThemeBase theme,
})

Set Chat Theme.

ID: 081202c9.

Implementation

Future<Result<UpdatesBase>> setChatTheme({
  required InputPeerBase peer,
  required InputChatThemeBase theme,
}) async {
  // Preparing the request.
  final request = MessagesSetChatTheme(peer: peer, theme: theme);

  // Invoke and wait for response.
  final response = await _c.invoke(request);

  // Return the result.
  return response._to<UpdatesBase>();
}