Skip to contents

Add a user to a chat or channel

Usage

add_user_to_chat(client, chat, user, fwd_limit = 10)

Arguments

client

TelegramClient instance.

chat

Chat/channel (username, link, or entity).

user

User (username, link, or entity).

fwd_limit

Forward limit for basic chats. Default is 10.

Value

The API response.

Examples

if (FALSE) { # \dontrun{
client <- TelegramClient$new("my_session", api_id = 123, api_hash = "abc")
client$connect()

add_user_to_chat(client, chat = "my_group", user = "username")
} # }