Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/3_functions.ts>channels_getAdminedPublicChannels_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class channels_getAdminedPublicChannels_
extends Function_<enums.messages.Chats>
import { channels_getAdminedPublicChannels_ } from "https://deno.land/x/mtkruto@0.1.190/tl/3_functions.ts";

Get channels/supergroups/geogroups we're admin in. Usually called when the user exceeds the limit for owned public channels/supergroups/geogroups, and the user is given the choice to remove one of his channels/supergroups/geogroups.

Constructors

new
channels_getAdminedPublicChannels_(params?: { by_location?: true; check_limit?: true; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
by_location: true

Get geogroups

optional
check_limit: true

If set and the user has reached the limit of owned public channels/supergroups/geogroups, instead of returning the channel list one of the specified errors will be returned.
Useful to check if a new public channel can indeed be created, even before asking the user to enter a channel username to use in channels.checkUsername/channels.updateUsername.

Static Properties

__F: (params?: { by_location?: true; check_limit?: true; }) => enums.messages.Chats
readonly
[name]: string
readonly
[paramDesc]: ParamDesc