toggleChatStarGiftNotifications method
Future<Result<Boolean> >
toggleChatStarGiftNotifications({
- required bool enabled,
- required InputPeerBase peer,
Toggle Chat Star Gift Notifications.
ID: 60eaefa1.
Implementation
Future<Result<Boolean>> toggleChatStarGiftNotifications({
required bool enabled,
required InputPeerBase peer,
}) async {
// Preparing the request.
final request = PaymentsToggleChatStarGiftNotifications(
enabled: enabled,
peer: peer,
);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<Boolean>();
}