InviteUsersToBot class

Invites users to private chats with a bot owned by the current user. Can be called only if userTypeBot.can_be_edited == true. Each invited user will receive a message of the type messageBotInvite, and the bot will be able to send messages to that user. The request succeeds if at least one user was invited Returns Ok

Inheritance
Available extensions
Annotations
  • @immutable

Constructors

InviteUsersToBot({required int botUserId, required List<int> userIds})
const

Properties

botUserId → int
botUserId Identifier of the bot
final
hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
userIds → List<int>
userIds Identifiers of the users to invite; 1-10 different users
final

Methods

copyWith({int? botUserId, List<int>? userIds}) → InviteUsersToBot

Available on InviteUsersToBot, provided by the InviteUsersToBotExtensions extension

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

Operators

operator ==(Object other) → bool
The equality operator.
override

Constants

constructor → const String