GetAdminedPublicChannelsRequest
Only users can use this request. See code examples.
---functions--- channels.getAdminedPublicChannels#f8b036af flags:# by_location:flags.0?true check_limit:flags.1?true for_personal:flags.2?true = messages.Chats
Returns
| messages.Chats |
This type can be an instance of either:
| Chats | ChatsSlice |
Parameters
| by_location | flag | This argument defaults to None and can be omitted. |
| check_limit | flag | This argument defaults to None and can be omitted. |
| for_personal | flag | This argument defaults to None and can be omitted. |
Known RPC errors
This request can't cause any RPC error as far as we know.
Example
from telethon.sync import TelegramClient
from telethon import functions, types
with TelegramClient(name, api_id, api_hash) as client:
result = client(functions.channels.GetAdminedPublicChannelsRequest(
by_location=True,
check_limit=True,
for_personal=True
))
print(result.stringify())