ChatActionBarBotInvite class

The chat is a private chat with a bot to which the current user was invited by another user. The chat can be reported as spam using the method reportChat with an empty option_id and message_ids; the user who sent the invitation will be reported. The bot can be blocked using the method setMessageSenderBlockList

Inheritance
Available extensions
Annotations
  • @immutable

Constructors

ChatActionBarBotInvite({required bool canUnarchive, required int inviterUserId, required int ownerUserId})
const

Properties

canUnarchive → bool
canUnarchive If true, the chat was automatically archived and can be moved back to the main chat list using addChatToList simultaneously with setting chat notification settings to default using setChatNotificationSettings
final
hashCode → int
The hash code for this object.
no setteroverride
inviterUserId → int
inviterUserId Identifier of the user who invited the current user to the bot
final
ownerUserId → int
ownerUserId Identifier of the current owner of the bot; 0 if unknown
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({bool? canUnarchive, int? inviterUserId, int? ownerUserId}) → ChatActionBarBotInvite

Available on ChatActionBarBotInvite, provided by the ChatActionBarBotInviteExtensions extension

getConstructor() → String
override
map<TResult extends Object?>({required TResult reportSpam(ChatActionBarReportSpam value), required TResult inviteMembers(ChatActionBarInviteMembers value), required TResult reportAddBlock(ChatActionBarReportAddBlock value), required TResult addContact(ChatActionBarAddContact value), required TResult sharePhoneNumber(ChatActionBarSharePhoneNumber value), required TResult joinRequest(ChatActionBarJoinRequest value), required TResult botInvite(ChatActionBarBotInvite value)}) → TResult

Available on ChatActionBar, provided by the ChatActionBarExtensions extension

maybeMap<TResult extends Object?>({TResult reportSpam(ChatActionBarReportSpam value)?, TResult inviteMembers(ChatActionBarInviteMembers value)?, TResult reportAddBlock(ChatActionBarReportAddBlock value)?, TResult addContact(ChatActionBarAddContact value)?, TResult sharePhoneNumber(ChatActionBarSharePhoneNumber value)?, TResult joinRequest(ChatActionBarJoinRequest value)?, TResult botInvite(ChatActionBarBotInvite value)?, required TResult orElse()}) → TResult

Available on ChatActionBar, provided by the ChatActionBarExtensions extension

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