telegramAPI
telegramAPI copied to clipboard
Get rid of obsolete URI::encode calls in favor of URI::encode_www_form
When using Ruby >= 2.7.2, a
/app/vendor/bundle/ruby/2.7.0/gems/telegramAPI-1.4.2/lib/telegramAPI.rb:22: warning: URI.escape is obsolete
message gets triggered.
This should solve the issue.
Source: https://docs.knapsackpro.com/2020/uri-escape-is-obsolete-percent-encoding-your-query-string