AddChatMember class final
AddChatMember (addChatMember) - TDLib function
Adds a new member to a chat; requires can_invite_users member right. Members can't be added to private or secret chats. Returns information about members that weren't added.
- chatId: Chat identifier.
- userId: Identifier of the user.
- forwardLimit: The number of earlier messages from the chat to be forwarded to the new member; up to 100. Ignored for supergroups and channels, or if the added user is a bot.
FailedToAddMembers is returned on completion.
- Inheritance
-
- Object
- TdFunction
- AddChatMember
Constructors
- AddChatMember({required int chatId, required int userId, required int forwardLimit})
-
AddChatMember (addChatMember) - TDLib function
const
Properties
- chatId → int
-
Chat identifier
final
- currentObjectId → String
-
TDLib object type for current class instance
no setteroverride
- forwardLimit → int
-
The number of earlier messages from the chat to be forwarded to the new member; up to 100. Ignored for supergroups and channels, or if the added user is a bot
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- userId → int
-
Identifier of the user
final
Methods
-
copyWith(
{int? chatId, int? userId, int? forwardLimit}) → AddChatMember - Copy model with modified properties.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
[dynamic extra]) → Map< String, dynamic> -
Convert model to TDLib JSON format
override
-
toString(
) → String -
Convert model to TDLib JSON format, encoded into String.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultObjectId → const String
- TDLib object type