Interface SharedUser

Contains information about a user shared with a bot.

interface SharedUser {
    @type: "sharedUser";
    first_name: string;
    last_name: string;
    photo: Photo;
    user_id: number;
    username: string;
}

Properties

@type: "sharedUser"
first_name: string

First name of the user; for bots only.

last_name: string

Last name of the user; for bots only.

photo: Photo

Profile photo of the user; for bots only; may be null.

user_id: number

User identifier.

username: string

Username of the user; for bots only.