Interface UserTypeBot

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

interface UserTypeBot {
    @type: "userTypeBot";
    active_user_count: number;
    allows_users_to_create_topics?: boolean;
    can_be_added_to_attachment_menu?: boolean;
    can_be_edited?: boolean;
    can_connect_to_business?: boolean;
    can_join_groups?: boolean;
    can_manage_bots?: boolean;
    can_read_all_group_messages?: boolean;
    has_main_web_app?: boolean;
    has_topic_sidebar?: boolean;
    has_topics?: boolean;
    inline_query_placeholder: string;
    is_guard?: boolean;
    is_inline?: boolean;
    need_location?: boolean;
    supports_guest_queries?: boolean;
}

Properties

@type: "userTypeBot"
active_user_count: number

The number of recently active users of the bot.

allows_users_to_create_topics?: boolean

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

can_be_added_to_attachment_menu?: boolean

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

can_be_edited?: boolean

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_connect_to_business?: boolean

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

can_join_groups?: boolean

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

can_manage_bots?: boolean

True, if the bot can manage other bots.

can_read_all_group_messages?: boolean

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?: boolean

True, if the bot has the main Web App.

has_topic_sidebar?: boolean

True, if the bot has topics, which are shown in a sidebar.

has_topics?: boolean

True, if the bot has topics.

inline_query_placeholder: string

Placeholder for inline queries (displayed in the application input field).

is_guard?: boolean

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

is_inline?: boolean

True, if the bot supports inline queries.

need_location?: boolean

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

supports_guest_queries?: boolean

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