telegram api method · layer 229 · #a6b1e39a

chatlists.joinChatlistInvite

usable by users

Import a chat folder deep link », joining some or all the chats in the folder.

definition

chatlists.joinChatlistInvite#a6b1e39a slug:string peers:Vector<InputPeer> = Updates;

parameters

nametypedescription
slugstringslug obtained from a chat folder deep link ».
peersVector<InputPeer>List of new chats to join, fetched using chatlists.checkChatlistInvite and filtered as specified in the documentation ».

returns

Updates

errors (7)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
400CHANNELS_TOO_MUCHYou have joined too many channels/supergroups.
400CHATLISTS_TOO_MUCHYou have created too many folder links, hitting the chatlist_invites_limit_default/chatlist_invites_limit_premium limits ».
400FILTER_INCLUDE_EMPTYThe include_peers vector of the filter is empty.
400INVITE_SLUG_EMPTYThe specified invite slug is empty.
400INVITE_SLUG_EXPIREDThe specified chat folder link has expired.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).

history

present in layers 158–229

idlayers
#a6b1e39a158–229