1
0
зеркало из https://github.com/glebtv/telegram-bot.git synced 2026-08-28 15:26:18 +03:00

One more description for StaleChat error

Этот коммит содержится в:
Max Melentiev
2016-08-01 15:49:50 +06:00
родитель 33f0049f6e
Коммит 4e539e1867
3 изменённых файлов: 8 добавлений и 0 удалений

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

@@ -1,3 +1,7 @@
# Unreleased
- One more description for StaleChat error.
# 0.8.0
- Fixed `#reply_with`, now it sets `reply_to_message_id` as it's supposed to.

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

@@ -13,6 +13,7 @@ module Telegram
# check response.
class StaleChat < Error
DESCRIPTIONS = [
'Bot was blocked',
'bot was kicked',
"can't write to",
'group chat is deactivated',

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

@@ -17,6 +17,9 @@ RSpec.describe Telegram::Bot do
expect(subject.call(
'description' => 'Bad request: group chat is deactivated'
)).to eq true
expect(subject.call(
'description' => 'Forbidden: Bot was blocked by the user'
)).to eq true
end
end
end