From 3a1bdc289929e55d7322945cb21ceca30cc6a9a6 Mon Sep 17 00:00:00 2001 From: P0lunin Date: Thu, 27 Jun 2019 15:07:41 +0300 Subject: [PATCH] add Poll, sendPoll, stopPoll --- telebot/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/telebot/__init__.py b/telebot/__init__.py index 98076cd..e8cc10b 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -1757,3 +1757,11 @@ class AsyncTeleBot(TeleBot): @util.async_dec() def delete_sticker_from_set(self, *args, **kwargs): return TeleBot.delete_sticker_from_set(self, *args, **kwargs) + + @util.async_dec() + def send_poll(self, *args, **kwargs): + return TeleBot.send_poll(self, *args, **kwargs) + + @util.async_dec() + def stop_poll(self, *args, **kwargs): + return TeleBot.stop_poll(self, *args, **kwargs)