IMessagesService.

CreateChatAsync(string, IReadOnlyList<IInputUser>, CancellationToken) Method

Summary

Creates a new chat.

Syntax

Task<IUpdates> CreateChatAsync(string title, IReadOnlyList<IInputUser> users, CancellationToken cancellationToken = default(CancellationToken))

Parameters

Name Type Description
title string Chat name
users IReadOnlyList<IInputUser> List of user IDs to be invited
cancellationToken CancellationToken Cancellation token

Return Value

Type Description
Task<IUpdates> Returns a IUpdates object containing a service message sent during an action.