Layer 220
ChannelFull
Full info about a channel, supergroup or gigagroup.
constructor
channelFull#e4e0b29d flags:# can_view_participants:flags.3?true can_set_username:flags.6?true can_set_stickers:flags.7?true hidden_prehistory:flags.10?true can_set_location:flags.16?true has_scheduled:flags.19?true can_view_stats:flags.20?true blocked:flags.22?true flags2:# can_delete_channel:flags2.0?true antispam:flags2.1?true participants_hidden:flags2.2?true translations_disabled:flags2.3?true stories_pinned_available:flags2.5?true view_forum_as_messages:flags2.6?true restricted_sponsored:flags2.11?true can_view_revenue:flags2.12?true paid_media_allowed:flags2.14?true can_view_stars_revenue:flags2.15?true paid_reactions_available:flags2.16?true stargifts_available:flags2.19?true paid_messages_available:flags2.20?true id:long about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int banned_count:flags.2?int online_count:flags.13?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:flags.23?ExportedChatInvite bot_info:Vector<BotInfo> migrated_from_chat_id:flags.4?long migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int stickerset:flags.8?StickerSet available_min_id:flags.9?int folder_id:flags.11?int linked_chat_id:flags.14?long location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int call:flags.21?InputGroupCall ttl_period:flags.24?int pending_suggestions:flags.25?Vector<string> groupcall_default_join_as:flags.26?Peer theme_emoticon:flags.27?string requests_pending:flags.28?int recent_requesters:flags.28?Vector<long> default_send_as:flags.29?Peer available_reactions:flags.30?ChatReactions reactions_limit:flags2.13?int stories:flags2.4?PeerStories wallpaper:flags2.7?WallPaper boosts_applied:flags2.8?int boosts_unrestrict:flags2.9?int emojiset:flags2.10?StickerSet bot_verification:flags2.17?BotVerification stargifts_count:flags2.18?int send_paid_messages_stars:flags2.21?long main_tab:flags2.22?ProfileTab = ChatFull;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| CanViewParticipants | flags.3?true | Can we view the participant list? |
| CanSetUsername | flags.6?true | Can we set the channel's username? |
| CanSetStickers | flags.7?true | Can we associate a stickerpack to the supergroup? |
| HiddenPrehistory | flags.10?true | Is the history before we joined hidden to us? |
| CanSetLocation | flags.16?true | Can we set the geolocation of this group (for geogroups) |
| HasScheduled | flags.19?true | Whether scheduled messages are available |
| CanViewStats | flags.20?true | Can the user view channel/supergroup statistics |
| Blocked | flags.22?true | 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 |
| Flags2 | # | Flags, see TL conditional fields |
| CanDeleteChannel | flags2.0?true | Can we delete this channel? |
| Antispam | flags2.1?true | Whether native antispam functionality is enabled in this supergroup. |
| ParticipantsHidden | flags2.2?true | Whether the participant list is hidden. |
| TranslationsDisabled | flags2.3?true | Whether the real-time chat translation popup should be hidden. |
| StoriesPinnedAvailable | flags2.5?true | Whether this user has some pinned stories. |
| ViewForumAsMessages | flags2.6?true | Users may also choose to display messages from all topics of a forum as if they were sent to a normal group, using a "View as messages" setting in the local client. This setting only affects the current account, and is synced to other logged in sessions using the channels. toggle View Forum As Messages method; invoking this method will update the value of this flag. |
| RestrictedSponsored | flags2.11?true | Whether ads on this channel were disabled as specified here (this flag is only visible to the owner of the channel). |
| CanViewRevenue | flags2.12?true | If set, this user can view ad revenue statistics for this channel. |
| PaidMediaAllowed | flags2.14?true | Whether the current user can send or forward paid media to this channel. |
| CanViewStarsRevenue | flags2.15?true | If set, this user can view Telegram Star revenue statistics for this channel. |
| PaidReactionsAvailable | flags2.16?true | If set, users may send paid Telegram Star reactions to messages of this channel. |
| StargiftsAvailable | flags2.19?true | If set, users may send Gifts to this channel. |
| PaidMessagesAvailable | flags2.20?true | If set, admins may enable enable paid messages in this supergroup. |
| Id | long | ID of the channel |
| About | string | Info about the channel |
| ParticipantsCount | flags.0?int | Number of participants of the channel |
| AdminsCount | flags.1?int | Number of channel admins |
| KickedCount | flags.2?int | Number of users kicked from the channel |
| BannedCount | flags.2?int | Number of users banned from the channel |
| OnlineCount | flags.13?int | Number of users currently online |
| ReadInboxMaxId | int | Position up to which all incoming messages are read. |
| ReadOutboxMaxId | int | Position up to which all outgoing messages are read. |
| UnreadCount | int | Count of unread messages |
| ChatPhoto | Photo | Channel picture |
| NotifySettings | PeerNotifySettings | Notification settings |
| ExportedInvite | flags.23?ExportedChatInvite | Invite link |
| BotInfo | Vector<BotInfo> | Info about bots in the channel/supergroup |
| MigratedFromChatId | flags.4?long | The chat ID from which this group was migrated |
| MigratedFromMaxId | flags.4?int | The message ID in the original chat at which this group was migrated |
| PinnedMsgId | flags.5?int | Message ID of the last pinned message |
| Stickerset | flags.8?StickerSet | Associated stickerset |
| AvailableMinId | flags.9?int | Identifier of a maximum unavailable message in a channel due to hidden history. |
| FolderId | flags.11?int | Peer folder ID, for more info click here |
| LinkedChatId | flags.14?long | ID of the linked discussion chat for channels (and vice versa, the ID of the linked channel for discussion chats). |
| Location | flags.15?ChannelLocation | Location of the geogroup |
| SlowmodeSeconds | flags.17?int | If specified, users in supergroups will only be able to send one message every slowmode_seconds seconds |
| SlowmodeNextSendDate | flags.18?int | Indicates when the user will be allowed to send another message in the supergroup (unixtime) |
| StatsDc | flags.12?int | If set, specifies the DC to use for fetching channel statistics |
| Pts | int | Latest PTS for this channel |
| Call | flags.21?InputGroupCall | Livestream or group call information |
| TtlPeriod | flags.24?int | Time-To-Live of messages in this channel or supergroup |
| PendingSuggestions | Vector<string> | A list of suggested actions for the supergroup admin, see here for more info. |
| GroupcallDefaultJoinAs | flags.26?Peer | When using phone. get Group Call Join As 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. |
| ThemeEmoticon | flags.27?string | Emoji representing a specific chat theme |
| RequestsPending | flags.28?int | Pending join requests |
| RecentRequesters | Vector<long> | IDs of users who requested to join recently |
| DefaultSendAs | flags.29?Peer | Default peer used for sending messages to this channel |
| AvailableReactions | flags.30?ChatReactions | Allowed message reactions |
| ReactionsLimit | flags2.13?int | This flag may be used to impose a custom limit of unique reactions (i. e. a customizable version of app Config. reactions_uniq_max ). |
| Stories | flags2.4?PeerStories | Channel stories |
| Wallpaper | flags2.7?WallPaper | Wallpaper |
| BoostsApplied | flags2.8?int | The number of boosts the current user has applied to the current supergroup. |
| BoostsUnrestrict | flags2.9?int | The number of boosts this supergroup requires to bypass slowmode and other restrictions, see here for more info. |
| Emojiset | flags2.10?StickerSet | Custom emoji stickerset associated to the current supergroup, set using channels. set Emoji Stickers after reaching the appropriate boost level, see here for more info. |
| BotVerification | flags2.17?BotVerification | Bot verification icon |
| StargiftsCount | flags2.18?int | Admins with chat Admin Rights. post_messages rights will see the total number of received gifts, everyone else will see the number of gifts added to the channel's profile. |
| SendPaidMessagesStars | flags2.21?long | If set and bigger than 0, this supergroup, monoforum or the monoforum associated to this channel has enabled paid messages and we must pay the specified amount of Stars to send messages to it, see here for the full flow. This flag will be set both for the monoforum and for channel Full of the associated channel). If set and equal to 0, the monoforum requires payment in general but we were exempted from paying. |
| MainTab | flags2.22?ProfileTab | The main tab for the channel's profile, see here for more info. |
Returns
ChatFullGogram Example
// Creating ChannelFull constructor obj := &tg.ChannelFull{ CanDeleteChannel: nil, Antispam: nil, ParticipantsHidden: nil, TranslationsDisabled: nil, StoriesPinnedAvailable: nil, ViewForumAsMessages: nil, // ... more required fields // Optional fields: // CanViewParticipants: true, // CanSetUsername: true, // CanSetStickers: true, // HiddenPrehistory: true, // ... more optional fields }