ToggleSupergroupJoinByRequest class final
Toggles whether all users directly joining the supergroup need to be approved by supergroup administrators; requires can_restrict_members administrator right
Returns Ok.
- Inheritance
-
- Object
- TdFunction<
Ok> - ToggleSupergroupJoinByRequest
Constructors
- ToggleSupergroupJoinByRequest({required int supergroupId, required bool joinByRequest, required int guardBotUserId, required bool applyToInviteLinks})
-
Toggles whether all users directly joining the supergroup need to be approved by supergroup administrators; requires can_restrict_members administrator right
const
Properties
- applyToInviteLinks → bool
-
Pass true to apply the change to the existing invite links, including primary links
final
- canBeCalledSynchronously → bool
-
Whether TDLib documents this request as callable through
td_execute.no setterinherited - guardBotUserId → int
-
Identifier of the bot which will be the guard bot in the group; pass 0 if none; ignored if join_by_request == false. The bot must have administrator privileges and can_invite_users right in the supergroup chat, and must have userTypeBot.is_guard == true
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- joinByRequest → bool
-
New value of join_by_request
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supergroupId → int
-
Identifier of the supergroup that isn't a broadcast group and isn't a channel direct message group
final
Methods
-
copyWith(
{int? supergroupId, bool? joinByRequest, int? guardBotUserId, bool? applyToInviteLinks}) → ToggleSupergroupJoinByRequest -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto 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
extraif 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.