IMessagesService.

EditChatTitle(int, string, CancellationToken) Method

Summary

Chanages chat name and sends a service message on it.

Syntax

Task<IUpdates> EditChatTitle(int chatId, string title, CancellationToken cancellationToken = default(CancellationToken))

Parameters

Name Type Description
chatId int Chat's identifier
title string New chat name, different from the old one
cancellationToken CancellationToken Cancellation token

Return Value

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