# rtgstat 0.3.6
* Replaced R 4.1.0 function shorthand syntax `\(x)` with classic `function(x)` in `tg_api_usage()` to maintain compatibility with R versions < 4.1.0 without adding a hard `Depends: R (>= 4.1.0)` requirement. This fixes the CRAN NOTE during the 0.3.5 submission.

# rtgstat 0.3.5
* Changed `Language: ru` to `Language: en-US` in DESCRIPTION to fix Nu HTML checker warnings reported by CRAN (the documentation is written in English).
* Added comprehensive unit testing using `httptest2` to mock API responses and preserve rate limits.
* Fixed an issue with `httr2::req_retry()` compatibility in recent `httr2` versions (parameter `after` now expects a function).
* Updated `dplyr` syntax in `tg_api_usage()` to comply with recent `dplyr` changes (replaced `across(...)` external vector warnings and deprecated `...` argument).

# rtgstat 0.3.4
* Change link to netpeak site in README.

# rtgstat 0.3.3
* Update default value for `tg.max_tries` options from 1 to 2.

It fixed error:
```
Error in `req_retry()`:
! `max_tries` must be a whole number larger than or equal to 2 or `NULL`, not the number 1.
```

# rtgstat 0.3.2
* Rebuild documentation, for cran policy (html5)

# rtgstat 0.3.1
* Update error handing policy in `tg_make_request()`, now using `req_error()` for response error handing.
* The description lists the minimum required versions of most imported packages.

# rtgstat 0.3.0

## New functions
* `tg_channels_search()`- Search telegram channel.

## Bug fixes
* Fix `tg_get_token()`, previously the function only looked for the token in the options, ignoring the environment variable [issue#1](https://github.com/selesnow/rtgstat/issues/1)

## Other
* `tg_get_token()` return error when API token doesn't set.

# rtgstat 0.2.1

* Only CRAN fixes.

# rtgstat 0.2.0

## New functions
* `tg_channel_avg_posts_reach()` - Getting the average coverage of channel publications over time.
* `tg_channel_err()` - Obtaining an ERR indicator for a channel in dynamics.
* `tg_set_check_api_quote()` - Enable and disable API limit rate alerts.

## New options
* `tg.check_api_quote` - allows you to disable api quota check.

## Bug fixes
* Fixed bug in `tg_set_channel_id()`: `object 'tg_channel_id' not found`.
* Fixed API quote parser in `tg_api_usage()`.

## Other
* `rtgstat` added to [TGStat API documentation](https://api.tgstat.ru/docs/ru/client-libs.html#%D1%8F%D0%B7%D1%8B%D0%BA-r).
* The mechanism for retrying a request in case of an error has been rewritten to the standard means `httr2`, using `req_retry()`.
* Add user agent to request in `tg_make_request()` by `req_user_agent()`.
* Now API endpoint add to URL by `req_url_path_append()` `inside tg_make_request()`.
* Disabled checking the api quota usage in the `tg_categories()`, `tg_countries()`, `tg_languages()`.
* `retry` removed from `rtgstat` dependencies.

# rtgstat 0.1.1

* Fixed errors in DESCRIPTION for CRAN.

# rtgstat 0.1.0

* Added a `NEWS.md` file to track changes to the package.
