From 78cba0489a5316f02b317d57e2df839886eab2d6 Mon Sep 17 00:00:00 2001 From: trenoduro Date: Sat, 1 Feb 2020 14:08:21 +0100 Subject: [PATCH] Fix stop_poll() (#339) --- pyrogram/client/methods/messages/stop_poll.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/client/methods/messages/stop_poll.py b/pyrogram/client/methods/messages/stop_poll.py index 3730da40..01c67b56 100644 --- a/pyrogram/client/methods/messages/stop_poll.py +++ b/pyrogram/client/methods/messages/stop_poll.py @@ -62,7 +62,7 @@ class StopPoll(BaseClient): id=message_id, media=types.InputMediaPoll( poll=types.Poll( - id=poll.id, + id=int(poll.id), closed=True, question="", answers=[]