telegram api method · layer 229 · #7fe7e815

messages.hideChatJoinRequest

usable by users and bots

Dismiss or approve a chat join request related to a specific chat or channel.

definition

messages.hideChatJoinRequest#7fe7e815 flags:# approved:flags.0?true peer:InputPeer user_id:InputUser = Updates;

parameters

nametypedescription
flags#Flags, see TL conditional fields
approvedflags.0?trueWhether to dismiss or approve the chat join request »
peerInputPeerThe chat or channel
user_idInputUserThe user whose join request » should be dismissed or approved

returns

Updates

errors (14)

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_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.
400INPUT_USER_DEACTIVATEDThe specified user was deleted.
400MSG_ID_INVALIDInvalid message ID provided.
400PEER_ID_INVALIDThe provided peer id is invalid.
400USER_ALREADY_PARTICIPANTThe user is already in the group.
400USER_CHANNELS_TOO_MUCHOne of the users you tried to add is already in too many channels/supergroups.
400USER_ID_INVALIDThe provided user ID is invalid.
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.
403USER_CHANNELS_TOO_MUCHOne of the users you tried to add is already in too many channels/supergroups.

history

present in layers 134–229

idlayers
#7fe7e815134–229