Skip to content

Conversation

@coyl
Copy link

@coyl coyl commented Jan 11, 2026

Summary

This PR adds the missing fields from the Telegram Bot API User object to ensure full API compatibility with Bot API 9.3.

Changes

Added Fields

  • HasMainWebApp (has_main_web_app) - Indicates if the bot has a main Web App (returned only in getMe)
  • HasTopicsEnabled (has_topics_enabled) - Indicates if the bot has forum topic mode enabled in private chats (returned only in getMe)

API Reference

Breaking Changes

None - these are additive fields with omitempty tags, so existing code will continue to work.

Related

  • Bot API 9.3 release notes mention these fields for topics in private chats

Add HasMainWebApp and HasTopicsEnabled fields to the User model to
match the complete Telegram Bot API specification. These fields are
returned only in getMe responses and indicate:
- has_main_web_app: whether the bot has a main Web App
- has_topics_enabled: whether the bot has forum topic mode enabled
  in private chats
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant