SetChatDirectMessagesGroup class final

Changes direct messages group settings for a channel chat; requires owner privileges in the chat

Returns Ok.

Inheritance

Constructors

SetChatDirectMessagesGroup({required int chatId, required bool isEnabled, required int paidMessageStarCount})
Changes direct messages group settings for a channel chat; requires owner privileges in the chat
const

Properties

canBeCalledSynchronously → bool
Whether TDLib documents this request as callable through td_execute.
no setterinherited
chatId → int
Identifier of the channel chat
final
hashCode → int
The hash code for this object.
no setterinherited
isEnabled → bool
Pass true if the direct messages group is enabled for the channel chat; pass false otherwise
final
paidMessageStarCount → int
The new number of Telegram Stars that must be paid for each message that is sent to the direct messages chat unless the sender is an administrator of the channel chat; 0-getOption("paid_message_star_count_max"). The channel will receive getOption("paid_message_earnings_per_mille") Telegram Stars for each 1000 Telegram Stars paid for message sending. Requires supergroupFullInfo.can_enable_paid_messages for positive amounts
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({int? chatId, bool? isEnabled, int? paidMessageStarCount}) → SetChatDirectMessagesGroup
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.