Skip to content

Commit 9ab8da6

Browse files
author
Pietro Albini
committed
Update the reference message of PEER_ID_INVALID
1 parent 7d30205 commit 9ab8da6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

botogram/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def call(self, method, params=None, files=None, expect=None):
108108
# isn't able to determine why your bot can't contact an user
109109
elif status == 400 and "PEER_ID_INVALID" in message:
110110
# Error code # 400
111-
# PEER_ID_INVALID
111+
# Bad request: PEER_ID_INVALID
112112
reason = "not_found"
113113

114114
# This happens when the bot can't contact the user or the user

tests/test_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def test_unavailable_chats(api, mock_req):
6363
},
6464
"sendLocation": {
6565
"ok": False, "error_code": 400,
66-
"description": "PEER_ID_INVALID",
66+
"description": "Bad request: PEER_ID_INVALID",
6767
},
6868
"sendVoice": {
6969
"ok": False, "error_code": 403,

0 commit comments

Comments
 (0)