From cf688a1dacb546184743e3c25b0324996de21793 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Fri, 4 Aug 2023 00:13:21 +0300 Subject: [PATCH] Bump butcher --- aiogram/types/message.py | 4 ++++ pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/aiogram/types/message.py b/aiogram/types/message.py index 58a491b8..610f162c 100644 --- a/aiogram/types/message.py +++ b/aiogram/types/message.py @@ -3075,6 +3075,10 @@ class Message(TelegramObject): from aiogram.methods import ForwardMessage + assert ( + self.chat is not None + ), "This method can be used only if chat is present in the message." + return ForwardMessage( from_chat_id=self.chat.id, message_id=self.message_id, diff --git a/pyproject.toml b/pyproject.toml index ab181ad4..6cd53590 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -148,7 +148,7 @@ features = [ "test", ] extra-dependencies = [ - "butcher @ git+https://github.com/aiogram/butcher.git@v0.1.21" + "butcher @ git+https://github.com/aiogram/butcher.git@v0.1.22" ] [tool.hatch.envs.dev.scripts]