зеркало из
https://github.com/glebtv/telegram-bot.git
synced 2026-09-07 03:25:49 +03:00
One more description for StaleChat error
Этот коммит содержится в:
@@ -1,3 +1,7 @@
|
|||||||
|
# Unreleased
|
||||||
|
|
||||||
|
- One more description for StaleChat error.
|
||||||
|
|
||||||
# 0.8.0
|
# 0.8.0
|
||||||
|
|
||||||
- Fixed `#reply_with`, now it sets `reply_to_message_id` as it's supposed to.
|
- Fixed `#reply_with`, now it sets `reply_to_message_id` as it's supposed to.
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ module Telegram
|
|||||||
# check response.
|
# check response.
|
||||||
class StaleChat < Error
|
class StaleChat < Error
|
||||||
DESCRIPTIONS = [
|
DESCRIPTIONS = [
|
||||||
|
'Bot was blocked',
|
||||||
'bot was kicked',
|
'bot was kicked',
|
||||||
"can't write to",
|
"can't write to",
|
||||||
'group chat is deactivated',
|
'group chat is deactivated',
|
||||||
|
|||||||
@@ -17,6 +17,9 @@ RSpec.describe Telegram::Bot do
|
|||||||
expect(subject.call(
|
expect(subject.call(
|
||||||
'description' => 'Bad request: group chat is deactivated'
|
'description' => 'Bad request: group chat is deactivated'
|
||||||
)).to eq true
|
)).to eq true
|
||||||
|
expect(subject.call(
|
||||||
|
'description' => 'Forbidden: Bot was blocked by the user'
|
||||||
|
)).to eq true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user