Interface AddChatMember

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. Request type for Tdjson#addChatMember.

interface AddChatMember {
    @type: "addChatMember";
    chat_id: number;
    forward_limit: number;
    user_id: number;
}

Properties

@type: "addChatMember"
chat_id: number

Chat identifier.

forward_limit: number

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.

user_id: number

Identifier of the user.