Link Search Menu Expand Document

Constructor: channelFull

Back to constructors index

Full info about a channel, supergroup or gigagroup.

When updating the local peer database », all fields from the newly received constructor take priority over the old constructor cached locally (including by removing fields that aren’t set in the new constructor).

Attributes:

NameTypeRequiredDescription
can_view_participantsBoolOptionalCan we view the participant list?
can_set_usernameBoolOptionalCan we set the channel’s username?
can_set_stickersBoolOptionalCan we associate a stickerpack to the supergroup?
hidden_prehistoryBoolOptionalIs the history before we joined hidden to us?
can_set_locationBoolOptionalCan we set the geolocation of this group (for geogroups)
has_scheduledBoolOptionalWhether scheduled messages are available
can_view_statsBoolOptionalCan the user view channel/supergroup statistics
blockedBoolOptionalWhether any anonymous admin of this supergroup was blocked: if set, you won’t receive messages from anonymous group admins in discussion replies via @replies
can_delete_channelBoolOptional
antispamBoolOptional
participants_hiddenBoolOptional
translations_disabledBoolOptional
stories_pinned_availableBoolOptional
view_forum_as_messagesBoolOptional
restricted_sponsoredBoolOptional
can_view_revenueBoolOptional
paid_media_allowedBoolOptional
can_view_stars_revenueBoolOptional
paid_reactions_availableBoolOptional
stargifts_availableBoolOptional
idlongYesID of the channel
aboutstringYesInfo about the channel
participants_countintOptionalNumber of participants of the channel
admins_countintOptionalNumber of channel admins
kicked_countintOptionalNumber of users kicked from the channel
banned_countintOptionalNumber of users banned from the channel
online_countintOptionalNumber of users currently online
read_inbox_max_idintYesPosition up to which all incoming messages are read.
read_outbox_max_idintYesPosition up to which all outgoing messages are read.
unread_countintYesCount of unread messages
chat_photoPhotoOptionalChannel picture
notify_settingsPeerNotifySettingsYesNotification settings
exported_inviteExportedChatInviteOptionalInvite link
bot_infoArray of BotInfoYesInfo about bots in the channel/supergroup
migrated_from_chat_idlongOptionalThe chat ID from which this group was migrated
migrated_from_max_idintOptionalThe message ID in the original chat at which this group was migrated
pinned_msg_idintOptionalMessage ID of the last pinned message
stickersetStickerSetOptionalAssociated stickerset
available_min_idintOptionalIdentifier of a maximum unavailable message in a channel due to hidden history.
folder_idintOptionalPeer folder ID, for more info click here
linked_chat_idlongOptionalID of the linked discussion chat for channels (and vice versa, the ID of the linked channel for discussion chats).
locationChannelLocationOptionalLocation of the geogroup
slowmode_secondsintOptionalIf specified, users in supergroups will only be able to send one message every slowmode_seconds seconds
slowmode_next_send_dateintOptionalIndicates when the user will be allowed to send another message in the supergroup (unixtime)
stats_dcintOptionalIf set, specifies the DC to use for fetching channel statistics
ptsintYesLatest PTS for this channel
callInputGroupCallOptionalLivestream or group call information
ttl_periodintOptionalTime-To-Live of messages in this channel or supergroup
pending_suggestionsArray of stringOptionalA list of suggested actions for the supergroup admin, see here for more info ».
groupcall_default_join_asPeerOptionalWhen using phone.getGroupCallJoinAs to get a list of peers that can be used to join a group call, this field indicates the peer that should be selected by default.
theme_emoticonstringOptionalEmoji representing a specific chat theme
requests_pendingintOptionalPending join requests »
recent_requestersArray of longOptionalIDs of users who requested to join recently
default_send_asPeerOptionalDefault peer used for sending messages to this channel
available_reactionsChatReactionsOptionalAllowed message reactions »
reactions_limitintOptional
storiesPeerStoriesOptional
wallpaperWallPaperOptional
boosts_appliedintOptional
boosts_unrestrictintOptional
emojisetStickerSetOptional
bot_verificationBotVerificationOptional
stargifts_countintOptional

Type: ChatFull

Example:

$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'can_set_stickers' => Bool, 'hidden_prehistory' => Bool, 'can_set_location' => Bool, 'has_scheduled' => Bool, 'can_view_stats' => Bool, 'blocked' => Bool, 'can_delete_channel' => Bool, 'antispam' => Bool, 'participants_hidden' => Bool, 'translations_disabled' => Bool, 'stories_pinned_available' => Bool, 'view_forum_as_messages' => Bool, 'restricted_sponsored' => Bool, 'can_view_revenue' => Bool, 'paid_media_allowed' => Bool, 'can_view_stars_revenue' => Bool, 'paid_reactions_available' => Bool, 'stargifts_available' => Bool, 'id' => long, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'banned_count' => int, 'online_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' => long, 'migrated_from_max_id' => int, 'pinned_msg_id' => int, 'stickerset' => StickerSet, 'available_min_id' => int, 'folder_id' => int, 'linked_chat_id' => long, 'location' => ChannelLocation, 'slowmode_seconds' => int, 'slowmode_next_send_date' => int, 'stats_dc' => int, 'pts' => int, 'call' => InputGroupCall, 'ttl_period' => int, 'pending_suggestions' => ['string', 'string'], 'groupcall_default_join_as' => Peer, 'theme_emoticon' => 'string', 'requests_pending' => int, 'recent_requesters' => [long, long], 'default_send_as' => Peer, 'available_reactions' => ChatReactions, 'reactions_limit' => int, 'stories' => PeerStories, 'wallpaper' => WallPaper, 'boosts_applied' => int, 'boosts_unrestrict' => int, 'emojiset' => StickerSet, 'bot_verification' => BotVerification, 'stargifts_count' => int];