Feeds, Bot Widgets, AI Settings and More
TgScheme
Layer 235 · Telegram for Android 13.3.2 (7356) · Preview
Telegram brings recommended posts together in a For You feed and lets you choose which channels appear in your news feed. Bots can show interactive widgets on their profiles, and you can connect an AI provider and choose which model to use.
News and Recommendations
The For You feed gives you a place to discover posts and choose the topics that interest you. You can like or dislike individual posts to give feedback on what you see.
You can also add channels to your news feed or remove them whenever you like. Telegram keeps track of what you've read so you can pick up where you left off.
Interactive Bot Profiles
Bots can display interactive widgets right on their profiles. A widget can show public information alongside data the bot sets for a specific chat. Widgets that support queries can ask the bot for information as needed.
AI Provider Settings
You can connect an AI provider with your own key and choose which connected provider and model to use. Some providers let you search their model lists. If a model supports adjustable effort, you can set its effort level too.
Changes in Layer 235
Compared with Layer 234
New Methods
- feed.likePost — Like a specific post in the feed.
- agent.setModel — Set the active AI model.
- feed.getForYou — Get items for the For You feed, optionally specifying a search query.
- bots.editProfileWidgetData — Set the public data for the bot's profile widget, optionally specifying how long clients can cache it.
- feed.dislikePost — Dislike a specific post in the feed.
- bots.getProfileWidgetPublicData — Get the public data for a bot's profile widget.
- messages.getShareTheme — Get the share theme associated with a peer.
- agent.setEffort — Set the effort level for the active AI model.
- feed.getFeed — Get messages for a feed filter, optionally starting from the last read position.
- bots.getProfileWidgetQueryAnswer — Send a profile widget query to a bot and get its answer.
- agent.disconnect — Disconnect an AI provider.
- feed.setInterestCategories — Set the selected interest categories for the For You feed.
- feed.readFeed — Mark messages in a filtered feed as read up to the specified position.
- feed.getInterestCategories — Get the available and selected interest categories for the For You feed.
- agent.setActiveProvider — Set the active AI provider.
- agent.getProviders — Get the list of available AI providers.
- channels.editChannelNews — Add a channel to the user's news feed or remove it from the feed.
- messages.reportFeedEvents — Report a batch of events associated with feed posts.
- agent.getModels — Get the models available from an AI provider, optionally specifying a search query.
- agent.getSettings — Get the current AI agent settings.
- bots.editProfileWidgetChatData — Set the profile widget data for the bot's chat with a specific user.
- agent.connect — Connect to an AI provider using an API key.
Changed Methods
- channels.joinChannel: added flags, for_news parameters
Removed Methods
- messages.getFutureChatCreatorAfterLeave
- bots.exportBotToken
- bots.checkUsername
New Constructors
- agent.models — Contains a list of AI models and, if available, an offset for the next page.
- pageBlockGroup — Groups multiple page blocks and optionally disables animation for the group.
- agent.settings — Contains summaries of connected provider keys and any active provider, model and effort settings.
- agent.providersNotModified — Indicates that the list of AI providers has not changed.
- agentProvider — Describes an AI provider, including where to obtain an API key and whether its models can be searched.
- feedPosition — Identifies a position in a feed by the message date, peer and message ID.
- feedItemMessageGroup — Represents a group of messages displayed as a single feed item.
- feedItemInterestCategories — Represents the interest category selector in a feed.
- feed.interestCategory — Describes a feed interest category, optionally with an emoji or custom emoji.
- inputFeedEvent — Describes an event associated with a feed post, optionally including recommendation details or timing information.
- updateReadFeed — Reports the read position of a filtered feed, optionally with unread and muted unread counts.
- agent.providerKey — Describes a connected provider key, including its last four characters and the connection date.
- feed.interestCategoriesNotModified — Indicates that the feed interest category data has not changed.
- botProfileWidget — Describes a bot's profile widget, including its payload, query capabilities and any public or chat-specific data.
- feedItemMessage — Represents a single message in a feed.
- agent.providers — Contains the list of available AI providers and its cache hash.
- updateBotProfileWidget — Notifies clients of a change to a bot's profile widget, including its removal.
- updateBotProfileWidgetQuery — Delivers a profile widget query to the bot, optionally including the user's wallet card.
- updateAgentSettings — Notifies clients of changes to the AI agent settings.
- feed.forYouFeed — Contains For You feed items, associated chats and users, and an optional recommendation ID.
- agentModel — Describes an AI model and indicates whether it supports adjusting the effort level.
- feed.feedMessagesNotModified — Indicates that the requested feed messages have not changed.
- feed.feedMessages — Contains a page of feed messages, associated chats and users, and any available feed position markers.
- updateBotProfileWidgetData — Notifies clients of changes to a bot's chat-specific profile widget data.
- feed.interestCategories — Contains the available feed interest categories and the IDs of the selected categories.
Changed Constructors
- userFull: added bot_profile_widget parameter
- inputMessageReadMetric: added flags, recommendation_id, recommendation_rank, event_time, recommendation_role, surface parameters
Schema
---types--- userFull#12c774ad flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true voice_messages_forbidden:flags.20?true translations_disabled:flags.23?true stories_pinned_available:flags.26?true blocked_my_stories_from:flags.27?true wallpaper_overridden:flags.28?true contact_require_premium:flags.29?true read_dates_private:flags.30?true flags2:# sponsored_enabled:flags2.7?true can_view_revenue:flags2.9?true bot_can_manage_emoji_status:flags2.10?true display_gifts_button:flags2.16?true noforwards_my_enabled:flags2.23?true noforwards_peer_enabled:flags2.24?true unofficial_security_risk:flags2.26?true id:long about:flags.1?string settings:PeerSettings personal_photo:flags.21?Photo profile_photo:flags.2?Photo fallback_photo:flags.22?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int ttl_period:flags.14?int theme:flags.15?ChatTheme private_forward_name:flags.16?string bot_group_admin_rights:flags.17?ChatAdminRights bot_broadcast_admin_rights:flags.18?ChatAdminRights wallpaper:flags.24?WallPaper stories:flags.25?PeerStories business_work_hours:flags2.0?BusinessWorkHours business_location:flags2.1?BusinessLocation business_greeting_message:flags2.2?BusinessGreetingMessage business_away_message:flags2.3?BusinessAwayMessage business_intro:flags2.4?BusinessIntro birthday:flags2.5?Birthday personal_channel_id:flags2.6?long personal_channel_message:flags2.6?int stargifts_count:flags2.8?int starref_program:flags2.11?StarRefProgram bot_verification:flags2.12?BotVerification send_paid_messages_stars:flags2.14?long disallowed_gifts:flags2.15?DisallowedGiftsSettings stars_rating:flags2.17?StarsRating stars_my_pending_rating:flags2.18?StarsRating stars_my_pending_rating_date:flags2.18?int main_tab:flags2.20?ProfileTab saved_music:flags2.21?Document note:flags2.22?TextWithEntities bot_manager_id:flags2.25?long wallet_card:flags2.19?wallet.Card share_theme:flags2.27?ShareTheme bot_profile_widget:flags2.28?BotProfileWidget = UserFull; inputMessageReadMetric#ea8fc40d msg_id:int view_id:long time_in_view_ms:int active_time_in_view_ms:int height_to_viewport_ratio_permille:int seen_range_ratio_permille:int flags:# recommendation_id:flags.0?long recommendation_rank:flags.1?int recommendation_role:flags.2?string surface:flags.3?string event_time:flags.4?int = InputMessageReadMetric; agent.models#32d50b38 flags:# models:Vector<agent.Model> next_offset:flags.0?string = agent.Models; pageBlockGroup#3382fa83 flags:# no_animate:flags.1?true id:flags.0?string blocks:Vector<PageBlock> = PageBlock; agent.settings#41ff3dd7 flags:# effort_supported:flags.4?true keys:Vector<agent.ProviderKey> active_provider:flags.0?string model:flags.1?string model_name:flags.2?string effort:flags.3?string = agent.Settings; agent.providersNotModified#43f756ad = agent.Providers; agent.providers#872297f2 hash:long providers:Vector<agent.Provider> = agent.Providers; agentProvider#47327c87 flags:# models_searchable:flags.0?true id:string title:string vendor:string key_url:string icon_emoji_id:flags.1?long = agent.Provider; feedPosition#5059dc73 date:int peer:Peer id:int = FeedPosition; feedItemMessageGroup#652f4c71 messages:Vector<Message> = FeedItem; feedItemInterestCategories#6be7187b = FeedItem; feedItemMessage#7e73b3a5 message:Message = FeedItem; feed.interestCategory#6c4666e3 flags:# id:int title:string emoji:flags.0?string emoji_document_id:flags.1?long = feed.InterestCategory; inputFeedEvent#6f89170e peer:InputPeer msg_id:int action:string surface:string flags:# recommendation_id:flags.0?long recommendation_rank:flags.1?int recommendation_role:flags.2?string kind:flags.3?string duration_ms:flags.4?int event_time:flags.5?int random_id:flags.6?long = InputFeedEvent; updateReadFeed#74585fb1 flags:# filter_id:int max_position:FeedPosition unread_count:flags.0?int unread_muted_count:flags.0?int = Update; updateBotProfileWidget#8ecbfbed flags:# bot_id:long widget:flags.0?BotProfileWidget = Update; updateBotProfileWidgetQuery#a9e0f526 flags:# query_id:long query_type:WidgetQueryType user_id:long data:bytes wallet_card:flags.0?wallet.Card = Update; updateAgentSettings#ba97db77 settings:agent.Settings = Update; updateBotProfileWidgetData#e8c61aa8 bot_id:long chat_data:string = Update; agent.providerKey#784d7e10 provider:string key_last4:string date_connected:int = agent.ProviderKey; feed.interestCategoriesNotModified#79cf2195 = feed.InterestCategories; feed.interestCategories#ecb62fa0 categories:Vector<feed.InterestCategory> selected:Vector<int> = feed.InterestCategories; botProfileWidget#7c1a8022 flags:# can_query:flags.0?true background_query:flags.1?true payload:bytes public_data:flags.2?string public_data_hash:flags.2?long chat_data:flags.3?string = BotProfileWidget; feed.forYouFeed#bea16ebd flags:# items:Vector<FeedItem> chats:Vector<Chat> users:Vector<User> recommendation_id:flags.0?long = feed.ForYouFeed; agentModel#d5d43c2a flags:# effort_supported:flags.2?true id:string name:string description:flags.0?string icon_emoji_id:flags.1?long = agent.Model; feed.feedMessagesNotModified#db1a3503 = feed.FeedMessages; feed.feedMessages#dcf754b9 flags:# max_position:flags.0?FeedPosition min_position:flags.1?FeedPosition read_max_position:flags.2?FeedPosition messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = feed.FeedMessages; ---functions--- channels.joinChannel#416cb50c flags:# for_news:flags.0?true channel:InputChannel = messages.ChatInviteJoinResult; channels.editChannelNews#d704f985 channel:InputChannel news:Bool = Updates; feed.likePost#1b4b627e peer:InputPeer msg_id:int = Bool; feed.getForYou#33b8e5eb flags:# query:flags.0?string limit:int = feed.ForYouFeed; feed.dislikePost#4d70175c peer:InputPeer msg_id:int = Bool; feed.getFeed#7e76d7d3 flags:# offset_to_max_read:flags.3?true filter_id:int offset_position:flags.0?FeedPosition add_offset:int limit:int max_position:flags.1?FeedPosition min_position:flags.2?FeedPosition hash:long = feed.FeedMessages; feed.setInterestCategories#9f2958dc category_ids:Vector<int> = Bool; feed.readFeed#b436c1ff filter_id:int max_position:FeedPosition = Updates; feed.getInterestCategories#ba7a1dba hash:long = feed.InterestCategories; agent.setModel#217e5447 model:string = agent.Settings; agent.setEffort#78f1d2c7 effort:string = agent.Settings; agent.disconnect#9abcf719 provider:string = agent.Settings; agent.setActiveProvider#bcb25188 provider:string = agent.Settings; agent.getProviders#ce0e7413 hash:long = agent.Providers; agent.getModels#e8d52912 flags:# provider:string query:flags.0?string offset:flags.1?string limit:int = agent.Models; agent.getSettings#fb0f9757 = agent.Settings; agent.connect#ff2471ec provider:string key:string = agent.Settings; bots.editProfileWidgetData#35ff9572 flags:# cache_time:flags.0?int public_data:string = Bool; bots.getProfileWidgetPublicData#72a0d773 bot:InputUser hash:long = messages.WidgetPublicData; bots.getProfileWidgetQueryAnswer#85748074 bot:InputUser query_type:WidgetQueryType data:bytes = messages.BotWidgetQueryAnswer; bots.editProfileWidgetChatData#fcc22359 user_id:InputUser chat_data:string = Bool; messages.getShareTheme#761b1c73 peer:InputPeer = ShareTheme; messages.reportFeedEvents#e4a2d5d0 events:Vector<InputFeedEvent> = Bool;
Summary and descriptions written by GPT-6.2 Sol from the schema diff. If they ever disagree with the schema, trust the schema.
If these changelogs save you time, you can support the channel ☕