Skip to content

UserTypeBot

Type · TDLib 1.8.67 · d1085f9c

A bot (see https://core.telegram.org/bots)

UserTypeBot(
  can_be_edited: Bool,
  can_join_groups: Bool,
  can_read_all_group_messages: Bool,
  has_main_web_app: Bool,
  has_topics: Bool,
  allows_users_to_create_topics: Bool,
  can_manage_bots: Bool,
  is_inline: Bool,
  inline_query_placeholder: string,
  supports_guest_queries: Bool,
  is_guard: Bool,
  need_location: Bool,
  can_connect_to_business: Bool,
  can_be_added_to_attachment_menu: Bool,
  active_user_count: int32
) → UserType

can_be_edited

Bool

True, if the bot is owned by the current user and can be edited using the methods toggleBotUsernameIsActive, reorderBotActiveUsernames, setBotProfilePhoto, setBotName, setBotInfoDescription, and setBotInfoShortDescription

can_join_groups

Bool

True, if the bot can be invited to basic group and supergroup chats

can_read_all_group_messages

Bool

True, if the bot can read all messages in basic group or supergroup chats and not just those addressed to the bot. In private and channel chats a bot can always read all messages

has_main_web_app

Bool

True, if the bot has the main Web App

has_topics

Bool

True, if the bot has topics

allows_users_to_create_topics

Bool

True, if users can create and delete topics in the chat with the bot

can_manage_bots

Bool

True, if the bot can manage other bots

is_inline

Bool

True, if the bot supports inline queries

inline_query_placeholder

string

Placeholder for inline queries (displayed on the application input field)

supports_guest_queries

Bool

True, if the bot can be queried by username from any non-secret chat

is_guard

Bool

True, if the bot can be set as a guard bot in supergroup chats

need_location

Bool

True, if the location of the user is expected to be sent with every inline query to this bot

can_connect_to_business

Bool

True, if the bot supports connection to user accounts for chat automation

can_be_added_to_attachment_menu

Bool

True, if the bot can be added to attachment or side menu

active_user_count

int32

The number of recently active users of the bot