ChatId

ChatId

# new ChatId(idopt, userIdopt)

Creates a ChatId.
Parameters:
Name Type Attributes Description
id string <optional>
Chat ID
userId UserId <optional>
User ID

Methods

# (static) create(id) → {ChatId}

Create a new ChatId instance.
Parameters:
Name Type Description
id string Chat ID.
Returns:
New ChatId.
Type
ChatId

# (static) createWithUserId(userId) → {ChatId}

Create a new ChatId instance with user id.
Parameters:
Name Type Description
userId UserId User ID.
Returns:
New ChatId.
Type
ChatId