ChatJoinRequest class

Represents a join request sent to a chat.

Implemented types

Constructors

ChatJoinRequest({required Chat chat, required User from, required int date, String? bio, ChatInviteLink? inviteLink, required int userChatId})
Creates a new ChatJoinRequest object.
const
ChatJoinRequest.fromJson(Map<String, dynamic> json)
Creates a new ChatJoinRequest object from json.
factory

Properties

bio String?
Optional. Bio of the user.
final
chat Chat
Chat to which the request was sent
final
date int
Date the request was sent in Unix time
final
dateTime DateTime
Returns a DateTime object representing the date field
no setter
from User
User that sent the join request
final
hashCode int
The hash code for this object.
no setterinherited
Optional. Chat invite link that was used by the user to send the join request
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
user User
User that sent the join request (alias for from)
no setter
userChatId int
Since Bot API 6.5
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts a ChatJoinRequest to a Map for JSON encoding.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited