diff --git a/botogram/api.py b/botogram/api.py index ac0f74f..2c53d43 100644 --- a/botogram/api.py +++ b/botogram/api.py @@ -22,6 +22,7 @@ "sendVoice", "sendLocation", "sendChatAction", + "getChat", ) diff --git a/docs/api/bot.rst b/docs/api/bot.rst index 0599876..a89951b 100644 --- a/docs/api/bot.rst +++ b/docs/api/bot.rst @@ -377,6 +377,17 @@ components. for chat_id in BROADCAST_TO: bot.chat(chat_id).send(to_send) + If your bot can't access the chat, an exception will be raised. Check out + the documentation about :ref:`unavailable chats ` to + learn more about that. + + .. versionadded:: 0.3 + + .. versionchanged:: 0.3.3 + + If your bot can't access the chat, a ``ChatUnavailableError`` will be + raised. + .. py:method:: send(chat, message[, preview=True, reply_to=None, syntax=None, extra=None, notify=True]) This method sends a message to a specific chat. The chat must be diff --git a/docs/changelog/0.3.rst b/docs/changelog/0.3.rst index b303f4f..bebbb47 100644 --- a/docs/changelog/0.3.rst +++ b/docs/changelog/0.3.rst @@ -14,9 +14,12 @@ botogram 0.3.3 *Bugfix release, not yet released* +* Fix unavailable chats not detected when calling :py:meth:`botogram.Bot.chat` + (`issue 71`_) * Fix broken detection of unavailable chats, due to changes in the Bot API (`issue 72`_) +.. _issue 71: https://github.com/pietroalbini/botogram/issues/71 .. _issue 72: https://github.com/pietroalbini/botogram/issues/72 .. _changelog-0.3.2: