ChatID class
This class is used to represent a chat id. It is a subclass of ID.
When the chat id is an integer, you can use this class to represent the chat id.
Constructors
- ChatID.new(int id)
-
Creates a new ChatID object with the passed
id
which is an integer.const - ChatID.create(int id)
-
Creates a new ChatID object with the passed
id
which is an integer.factory
Properties
Methods
-
get(
) → Future< ChatFullInfo> -
Returns the Chat object of the chat.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → dynamic -
Returns the id as a string or an integer.
inherited
-
toString(
) → String -
A string representation of this object.
inherited