MadelineProtoDocs/old_docs/API_docs_v86/constructors/channelFull.md
2019-12-27 17:48:04 +01:00

3.9 KiB

title description image
channelFull Full info about a [channel/supergroup](https://core.telegram.org/api/channel) https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: channelFull

Back to constructors index

Full info about a channel/supergroup

Attributes:

Name Type Required Description
can_view_participants Bool Optional Can we vew the participant list?
can_set_username Bool Optional Can we set the channel's username?
can_set_stickers Bool Optional Can we associate a stickerpack to the supergroup?
hidden_prehistory Bool Optional Is the history before we joined hidden to us?
id int Yes ID of the channel
about string Yes Info about the channel
participants_count int Optional Number of participants of the channel
admins_count int Optional Number of channel admins
kicked_count int Optional Number of users kicked from the channel
banned_count int Optional Number of users banned from the channel
read_inbox_max_id int Yes Position up to which all incoming messages are read.
read_outbox_max_id int Yes Position up to which all outgoing messages are read.
unread_count int Yes Count of unread messages
chat_photo Photo Optional Channel picture
notify_settings PeerNotifySettings Yes Notification settings
exported_invite ExportedChatInvite Yes Invite link
bot_info Array of BotInfo Yes Bot info
migrated_from_chat_id int Optional The chat ID from which this group was migrated
migrated_from_max_id int Optional The message ID in the original chat at which this group was migrated
pinned_msg_id int Optional Message ID of the pinned message
stickerset StickerSet Optional Associated stickerset
available_min_id int Optional Identifier of a maximum unavailable message in a channel due to hidden history.

Type: ChatFull

Example:

$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'can_set_stickers' => Bool, 'hidden_prehistory' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'banned_count' => int, 'read_inbox_max_id' => int, 'read_outbox_max_id' => int, 'unread_count' => int, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo], 'migrated_from_chat_id' => int, 'migrated_from_max_id' => int, 'pinned_msg_id' => int, 'stickerset' => StickerSet, 'available_min_id' => int];

Or, if you're into Lua:

channelFull={_='channelFull', can_view_participants=Bool, can_set_username=Bool, can_set_stickers=Bool, hidden_prehistory=Bool, id=int, about='string', participants_count=int, admins_count=int, kicked_count=int, banned_count=int, read_inbox_max_id=int, read_outbox_max_id=int, unread_count=int, chat_photo=Photo, notify_settings=PeerNotifySettings, exported_invite=ExportedChatInvite, bot_info={BotInfo}, migrated_from_chat_id=int, migrated_from_max_id=int, pinned_msg_id=int, stickerset=StickerSet, available_min_id=int}