ChatType enum

This object represents type of a chat. Currently, the following 5 types are supported:

Inheritance

Constructors

ChatType(String value)
Constructs a new ChatType.
const
ChatType.fromJson(String type)
Constructs a new ChatType from a String.
factory

Values

private → const ChatType

For a private chat with a user

const ChatType("private")
group → const ChatType

For a group chat

const ChatType("group")
supergroup → const ChatType

For a supergroup chat

const ChatType("supergroup")
channel → const ChatType

For a channel chat

const ChatType("channel")
sender → const ChatType

For a private chat with the inline query sender

Note: Only For Inline Query

const ChatType("sender")

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The value of this enum.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
Converts this ChatType to a String.
toString() String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<ChatType>
A constant List of the values in this enum, in order of their declaration.