telegram api method · layer 229 · #df04dd4e
messages.getChatInviteImporters
Get info about the users that joined the chat using a specific chat invite
definition
messages.getChatInviteImporters#df04dd4e flags:# requested:flags.0?true subscription_expired:flags.3?true peer:InputPeer link:flags.1?string q:flags.2?string offset_date:int offset_user:InputUser limit:int = messages.ChatInviteImporters;
parameters
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
requested | true | If set, only returns info about users with pending join requests » |
subscription_expired | true | Set this flag if the link is a Telegram Star subscription link » and only members with already expired subscription must be returned. |
peer | InputPeer | Chat |
link | string | Invite link |
q | string | Search for a user in the pending join requests » list: only available when the requested flag is set, cannot be used together with a specific link. |
offset_date | int | Offsets for pagination, for more info click here |
offset_user | InputUser | User ID for pagination: if set, offset_date must also be set. |
limit | int | Maximum number of results to return, see pagination |
returns
errors (9)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This 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. |
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
| 400 | CHANNEL_PRIVATE | You haven't joined this channel/supergroup. |
| 400 | CHAT_ADMIN_REQUIRED | You must be an admin in this chat to do this. |
| 400 | INVITE_HASH_EXPIRED | The invite link has expired. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
| 400 | SEARCH_WITH_LINK_NOT_SUPPORTED | You cannot provide a search query and an invite link at the same time. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
| 403 | CHAT_WRITE_FORBIDDEN | You can't write in this chat. |
history
present in layers 124–229 · constructor id changed 1×
| id | layers |
|---|---|
| #26fb7289 | 124–133 |
| #df04dd4e | 134–229 |