telegram api method · layer 229 · #e085f4ea

messages.hideAllChatJoinRequests

usable by users

Dismiss or approve all join requests related to a specific chat or channel.

definition

messages.hideAllChatJoinRequests#e085f4ea flags:# approved:flags.0?true peer:InputPeer link:flags.1?string = Updates;

parameters

nametypedescription
flags#Flags, see TL conditional fields
approvedflags.0?trueWhether to dismiss or approve all chat join requests »
peerInputPeerThe chat or channel
linkflags.1?stringOnly dismiss or approve join requests » initiated using this invite link

returns

Updates

errors (11)

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.
400CHANNEL_INVALIDThe provided channel is invalid.
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup.
400CHANNELS_TOO_MUCHYou have joined too many channels/supergroups.
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this.
400HIDE_REQUESTER_MISSINGThe join request was missing or was already handled.
400INVITE_HASH_EXPIREDThe invite link has expired.
400PEER_ID_INVALIDThe provided peer id is invalid.
400USER_CHANNELS_TOO_MUCHOne of the users you tried to add is already in too many channels/supergroups.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).
403CHAT_WRITE_FORBIDDENYou can't write in this chat.

history

present in layers 135–229

idlayers
#e085f4ea135–229