Summary
Adds a user to a chat and sends a service message on it.
Syntax
Task<IUpdates> AddChatUserAsync(int chatId, IInputUser user, int limit, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Name |
Type |
Description |
chatId |
int |
Chat's identifier |
user |
IInputUser |
User ID to be added |
limit |
int |
Number of last messages to be forwarded |
cancellationToken |
CancellationToken |
Cancellation token |
Return Value
Type |
Description |
Task<IUpdates> |
Returns a IUpdates object contains info on one message with auxiliary data and data on the
current state of updates.
|