MadelineProtoDocs/docs/API_docs/constructors/channelFull.md
2024-05-01 14:53:46 +02:00

8.7 KiB

title description nav_exclude image
channelFull Full info about a channel, supergroup or gigagroup. true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: channelFull

Back to constructors index

Full info about a channel, supergroup or gigagroup.

Attributes:

Name Type Required Description
can_view_participants Bool Optional Can we view 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?
can_set_location Bool Optional Can we set the geolocation of this group (for geogroups)
has_scheduled Bool Optional Whether scheduled messages are available
can_view_stats Bool Optional Can the user view channel/supergroup statistics
blocked Bool Optional Whether 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_channel Bool Optional
antispam Bool Optional
participants_hidden Bool Optional
translations_disabled Bool Optional
stories_pinned_available Bool Optional
view_forum_as_messages Bool Optional
restricted_sponsored Bool Optional
can_view_revenue Bool Optional
id long 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
online_count int Optional Number of users currently online
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 Optional Invite link
bot_info Array of BotInfo Yes Info about bots in the channel/supergroup
migrated_from_chat_id long 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 last 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.
folder_id int Optional Peer folder ID, for more info click here
linked_chat_id long Optional ID of the linked discussion chat for channels
location ChannelLocation Optional Location of the geogroup
slowmode_seconds int Optional If specified, users in supergroups will only be able to send one message every slowmode_seconds seconds
slowmode_next_send_date int Optional Indicates when the user will be allowed to send another message in the supergroup (unixtime)
stats_dc int Optional If set, specifies the DC to use for fetching channel statistics
pts int Yes Latest PTS for this channel
call InputGroupCall Optional Livestream or group call information
ttl_period int Optional Time-To-Live of messages in this channel or supergroup
pending_suggestions Array of string Optional A list of suggested actions for the supergroup admin, see here for more info ».
groupcall_default_join_as Peer Optional When 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_emoticon string Optional Emoji representing a specific chat theme
requests_pending int Optional Pending join requests »
recent_requesters Array of long Optional IDs of users who requested to join recently
default_send_as Peer Optional Default peer used for sending messages to this channel
available_reactions ChatReactions Optional Allowed message reactions »
reactions_limit int Optional
stories PeerStories Optional
wallpaper WallPaper Optional
boosts_applied int Optional
boosts_unrestrict int Optional
emojiset StickerSet Optional

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, '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];