ChatType enum
This object represents type of a chat. Currently, the following 5 types are supported:
- ChatType.private : For a private chat with a user
- ChatType.group : For a group chat
- ChatType.supergroup : For a supergroup chat
- ChatType.channel : For a channel chat
- ChatType.sender : For a private chat with the inline query sender
Constructors
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
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