1
0
зеркало из https://github.com/glebtv/telegram-bot.git synced 2026-08-28 15:26:18 +03:00
Этот коммит содержится в:
Max Melentiev
2021-01-26 08:37:02 +00:00
родитель 1c141f782e
Коммит a0ca383bab
3 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@@ -1,5 +1,7 @@
# Unreleased
# 0.15.2
- Ruby 3.0 support. Drop support for Ruby < 2.4.
# 0.15.1

Просмотреть файл

@@ -131,9 +131,9 @@ bot.send_message(chat_id: chat_id, text: 'Test')
```
There is no magic, they just pass params as is and set `path_suffix`.
See [`Client`](https://github.com/telegram-bot-rb/telegram-bot/blob/master/lib/telegram/bot/client.rb)
class for list of available methods. Please open PR or issue if it misses methods from
new API versions.
See [list of available methods](https://github.com/telegram-bot-rb/telegram-bot/blob/master/lib/telegram/bot/client/api_methods.txt)
fetched from [API docs](https://core.telegram.org/bots/api).
Please open PR or issue if it misses methods from new API versions.
Any API request error will raise `Telegram::Bot::Error` with description in its message.
Special `Telegram::Bot::Forbidden` is raised when bot can't post messages to the chat anymore.

Просмотреть файл

@@ -1,6 +1,6 @@
module Telegram
module Bot
VERSION = '0.15.1'.freeze
VERSION = '0.15.2'.freeze
def self.gem_version
Gem::Version.new VERSION