ClientUser
classextends User
The bot's own user account (returned by getMe).
Declaration
declare class ClientUser extends User Properties
get canReadAllGroupMessages(): boolean;Whether the bot can read all messages in groups (privacy mode disabled).
get supportsInlineQueries(): boolean;Whether the bot supports inline queries.
Methods
setCommands(commands: T.BotCommand[], options?: Omit<SetMyCommandsParams, 'commands'>): Promise<boolean>;| Parameter | Type |
|---|---|
| commands | T.BotCommand[] |
| options? | Omit<SetMyCommandsParams, 'commands'> |
Returns Promise<boolean>
Set this bot's list of commands.