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
-
- Object
- TdFunction
- InviteUsersToBot
- Available extensions
- Annotations
-
- @immutable
Constructors
-
InviteUsersToBot({required int botUserId, required List<
int> userIds}) -
const
Properties
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