package auth

import (
	

	

	
)

// self returns current user.
//
// You can use tg.User.Bot to check whether current user is bot.
func ( *Client) ( context.Context) (*tg.User, error) {
	,  := .api.UsersGetUsers(, []tg.InputUserClass{&tg.InputUserSelf{}})
	if  != nil {
		return nil, 
	}

	,  := tg.UserClassArray().FirstAsNotEmpty()
	if ! {
		return nil, errors.Errorf("users response count: %v", )
	}

	return , nil
}