Td Api User Type - OTR/Kotlin-Telegram-Client GitHub Wiki

Class TdApi.UserType

Description

This class is an abstract base class. Represents the type of a user. The following types are possible: regular users, deleted users and bots.

Subclasses

Class TdApi.UserTypeBot

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

Properties

  • canBeAddedToAttachmentMenu: Boolean - True, if the bot can be added to attachment menu.
  • canJoinGroups: Boolean - True, if the bot can be invited to basic group and supergroup chats.
  • canReadAllGroupMessages: 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.
  • inlineQueryPlaceholder: String - Placeholder for inline queries (displayed on the application input field).
  • isInline: Boolean - True, if the bot supports inline queries.
  • needLocation: Boolean - True, if the location of the user is expected to be sent with every inline query to this bot.

Class TdApi.UserTypeDeleted

A deleted user or deleted bot. No information on the user besides the user identifier is available. It is not possible to perform any active actions on this type of user.

Class TdApi.UserTypeRegular

A regular user.

Class TdApi.UserTypeUnknown

No information on the user besides the user identifier is available, yet this user has not been deleted. This object is extremely rare and must be handled like a deleted user. It is not possible to perform any actions on users of this type.

Reference