Skip to content

addChatMember

Function · TDLib 1.8.67 · d1085f9c

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

addChatMember(
  chat_id: int53,
  user_id: int53,
  forward_limit: int32
) → FailedToAddMembers

chat_id

int53

Chat identifier

user_id

int53

Identifier of the user

forward_limit

int32

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