add_chat_member


Description:

public async FailedToAddMembers add_chat_member (int64 chat_id, int64 user_id, int32 forward_limit) throws TDLibError

Adds a new member to a chat; requires can_invite_users member right. Members can't be added to private or secret chats. Returns information about members that weren't added

Parameters:

chat_id

Chat identifier

user_id

Identifier of the user

forward_limit

The number of earlier messages from the chat to be forwarded to the new member; up to 100. Ignored for supergroups and channels, or if the added user is a bot