libtd-ktx / kotlinx.telegram.extensions / UserKtx / addChatMember
addChatMember
open suspend fun User.addChatMember(chatId: Long, forwardLimit: Int): Unit
Suspend function, which adds a new member to a chat. Members can’t be added to private or secret chats. Members will not be added until the chat state has been synchronized with the server.
Parameters
chatId - Chat identifier.
forwardLimit - The number of earlier messages from the chat to be forwarded to the new
member; up to 100. Ignored for supergroups and channels.