Multiple small changes/fixed typos to docs/error messages (#623)

This commit is contained in:
Joscha Götzer
2018-03-01 13:21:28 +01:00
committed by Lonami
parent 3184641549
commit 835ff51e25
10 changed files with 71 additions and 35 deletions

View File

@@ -455,7 +455,9 @@ class TelegramBareClient:
with self._reconnect_lock:
self._reconnect()
raise RuntimeError('Number of retries reached 0.')
raise RuntimeError('Number of retries reached 0 for {}.'.format(
[type(x).__name__ for x in requests]
))
# Let people use client.invoke(SomeRequest()) instead client(...)
invoke = __call__