Skip to main content

Update an admin

PATCH 

https://api.botsubscription.com/v1/bot:bot_id/:api_key/admins/:admin_id

Update the level of access an admin has.

Request

Path Parameters

    bot_id integerrequired

    The unique identifier of the bot.

    api_key stringrequired

    The API key of the bot.

    admin_id stringrequired

    The unique identifier of the admin. Can't be the owner of the bot.

Bodyrequired

    admin_level integerrequired

    The level of access the admin has. Must be an integer between 2 and 8.

    bot_token string

    The API token generated from @BotFather in Telegram.

Responses

The admin has been successfully updated.
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.botsubscription.com");
var content = new StringContent(string.Empty);
content.Headers.ContentType = new MediaTypeHeaderValue("application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://api.botsubscription.com
Parameters
— pathrequired
— pathrequired
— pathrequired
Body required
{
  "admin_level": 0,
  "bot_token": "string"
}
ResponseClear

Click the Send API Request button above and see the response here!