ChatId

ChatId

# new ChatId(idopt)

Creates a ChatId.
Parameters:
Name Type Attributes Description
id string <optional>
Chat ID
contentMap.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