DirectMessagePriceChanged class abstract

Describes a service message about a change in the price of direct messages sent to a channel chat.

Annotations
  • @freezed

Constructors

DirectMessagePriceChanged.new({@JsonKey(name: 'are_direct_messages_enabled') required bool areDirectMessagesEnabled, @JsonKey(name: 'direct_message_star_count') int? directMessageStarCount})
Creates a new DirectMessagePriceChanged object.
const
factory
DirectMessagePriceChanged.fromJson(Map<String, dynamic> json)
Creates a new DirectMessagePriceChanged object from a JSON Map.
factory

Properties

areDirectMessagesEnabled bool
True, if direct messages are enabled for the channel chat; false otherwise
no setterinherited
copyWith → $DirectMessagePriceChangedCopyWith<DirectMessagePriceChanged>
Create a copy of DirectMessagePriceChanged with the given fields replaced by the non-null parameter values.
no setterinherited
directMessageStarCount int?
Optional. The new number of Telegram Stars that must be paid by users for each direct message sent to the channel. Does not apply to users who have been exempted by administrators. Defaults to 0.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this DirectMessagePriceChanged to a JSON map.
inherited
toString() String
A string representation of this object.
inherited

Operators

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