Add new chat members to a group, supergroup or channel
str) – The group, supergroup or channel id
str| List of
str) – Users to add in the chat You can pass an ID (int), username (str) or phone number (str). Multiple users can be added by passing a list of IDs, usernames or phone numbers.
int, optional) – How many of the latest messages you want to forward to the new members. Pass 0 to forward none of them. Only applicable to basic groups (the argument is ignored for supergroups or channels). Defaults to 100 (max amount).
bool– On success, True is returned.
# Add one member to a group or channel app.add_chat_members(chat_id, user_id) # Add multiple members to a group or channel app.add_chat_members(chat_id, [user_id1, user_id2, user_id3]) # Change forward_limit (for basic groups only) app.add_chat_members(chat_id, user_id, forward_limit=25)