Get invite link
GEThttps://api.botsubscription.com/v1/bot:bot_id/:api_key/inviteLink/:chat_id/:member_id
Get the invite link for a chat or folder.
Request
Responses
- 201
- 403
- 404
- 410
The invite link has been successfully retrieved.
The membership of the member_id provided does not allow them to access the chat_id provided.
The chat_id provided is not in the list of chats, or the member_id provided does not belong to someone who has an active membership in the bot.
The bot is not a member of the chat_id provided.
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.botsubscription.com");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear