channels.GetAdminedPublicChannels
- class pyrogram.raw.functions.channels.GetAdminedPublicChannels
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.
- Details:
Layer:
223ID:
F8B036AF
- Parameters:
by_location (
bool, optional) – Get geogroupscheck_limit (
bool, optional) – 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.for_personal (
bool, optional) – Set this flag to only fetch the full list of channels that may be passed to account.updatePersonalChannel to display them on our profile page.
- Returns:
TL Schema
channels.getAdminedPublicChannels#f8b036af
flags:#
by_location:flags.0?true
check_limit:flags.1?true
for_personal:flags.2?true
= messages.Chats
Parameter Tree
true (optional)true (optional)true (optional)Example
await app.invoke(
GetAdminedPublicChannels(
by_location=None,
check_limit=None,
for_personal=None,
)
)