# new ChatId(idopt, userIdopt)
Creates a ChatId.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
id |
string |
<optional> |
Chat ID |
userId |
UserId |
<optional> |
User ID |
- Source:
Methods
# (static) create(id) → {ChatId}
Create a new ChatId instance.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | Chat ID. |
- Source:
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. |
- Source:
Returns:
New ChatId.
- Type
- ChatId