Summary
Creates a new chat.
- Namespace
- OpenTl
.ClientApi .Services .Interfaces - Containing Type
- IMessagesService
Syntax
Task<IUpdates> CreateChatAsync(string title, IReadOnlyList<IInputUser> users, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Name | Type | Description |
---|---|---|
title | string | Chat name |
users | IReadOnlyList |
List of user IDs to be invited |
cancellationToken | CancellationToken | Cancellation token |
Return Value
Type | Description |
---|---|
Task |
Returns a IUpdates object containing a service message sent during an action. |