public static function bindToObject(TelegramResponse $data, LoggerInterface $logger): TelegramTypes
    {
        return new Message($data->getResult(), $logger);
    }
public static function bindToObject(TelegramResponse $data, LoggerInterface $logger): TelegramTypes
    {
        return new Message($data->getResult(), $logger);
    }
public static function bindToObject ( TelegramResponse $ data , LoggerInterface $ logger ) : TelegramTypes { return new Message ( $ data -> getResult ( ) , $ logger ) ; }
Most of the methods will return a Message object on success, so set that as the default.

This function may however be overwritten if the method uses another object, there are many examples of this, so
just check out the rest of the code. A good place to start is GetUserProfilePhotos or LeaveChat

@see \unreal4u\TelegramAPI\Telegram\Methods\GetUserProfilePhotos
@see \unreal4u\TelegramAPI\Telegram\Methods\LeaveChat

@param TelegramResponse $data
@param LoggerInterface $logger

@return TelegramTypes
Most of the methods will return a Message object on success so set that as the default .