telegramx.js

ClientUser

class

extends User

The bot's own user account (returned by getMe).

Declaration

declare class ClientUser extends User 

Properties

get canJoinGroups(): boolean;

Whether the bot can be added to groups.

get canReadAllGroupMessages(): boolean;

Whether the bot can read all messages in groups (privacy mode disabled).

rawproperty#
raw: T.User;
get supportsInlineQueries(): boolean;

Whether the bot supports inline queries.

Methods

setCommands(commands: T.BotCommand[], options?: Omit<SetMyCommandsParams, 'commands'>): Promise<boolean>;
ParameterType
commandsT.BotCommand[]
options?Omit<SetMyCommandsParams, 'commands'>
Returns Promise<boolean>

Set this bot's list of commands.