package telegram

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) {
	,  := .tg.UsersGetUsers(, []tg.InputUserClass{&tg.InputUserSelf{}})
	if  != nil {
		return nil, 
	}

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

	return , nil
}