From 82b35acf52edf7fd7e6bf5b24a4c517d976790bd Mon Sep 17 00:00:00 2001 From: Suren Khorenyan Date: Sat, 17 Mar 2018 11:12:53 +0300 Subject: [PATCH] Add return self to the InlineKeyboardMarkup's insert method --- aiogram/types/inline_keyboard.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aiogram/types/inline_keyboard.py b/aiogram/types/inline_keyboard.py index 003a3556..1b5c8011 100644 --- a/aiogram/types/inline_keyboard.py +++ b/aiogram/types/inline_keyboard.py @@ -66,11 +66,14 @@ class InlineKeyboardMarkup(base.TelegramObject): Insert button to last row :param button: + :return: self + :rtype: :obj:`types.InlineKeyboardMarkup` """ if self.inline_keyboard and len(self.inline_keyboard[-1] < self.row_width): self.inline_keyboard[-1].append(button) else: self.add(button) + return self class InlineKeyboardButton(base.TelegramObject):