From 727a3fef85523dc26f8b74a6cfe2199594175328 Mon Sep 17 00:00:00 2001 From: PyMaster <59120866+pystorage@users.noreply.github.com> Date: Tue, 23 Jun 2020 22:04:24 +0300 Subject: [PATCH] Add files via upload --- pykeyboard/__init__.py | 6 ++++++ pykeyboard/inline_pagination_keyboard.py | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pykeyboard/__init__.py b/pykeyboard/__init__.py index 40b561f..549bf4d 100644 --- a/pykeyboard/__init__.py +++ b/pykeyboard/__init__.py @@ -1,3 +1,9 @@ +__title__ = 'pykeyboard' +__version__ = '0.1.0' +__author__ = 'PyMaster' +__license__ = 'MIT License' +__copyright__ = 'Copyright 2020 PyMaster' + from .inline_keyboard import InlineKeyboard from .inline_pagination_keyboard import InlinePaginationKeyboard from .reply_keyboard import ReplyKeyboard diff --git a/pykeyboard/inline_pagination_keyboard.py b/pykeyboard/inline_pagination_keyboard.py index bf2f11e..0a2512e 100644 --- a/pykeyboard/inline_pagination_keyboard.py +++ b/pykeyboard/inline_pagination_keyboard.py @@ -39,7 +39,7 @@ class InlinePaginationKeyboard(InlineKeyboardMarkup): ] @property - def middle__pagination(self): + def middle_pagination(self): return [ self.add_button( self.SYMBOL_FIRST_PAGE.format(1), 1), @@ -91,7 +91,7 @@ class InlinePaginationKeyboard(InlineKeyboardMarkup): elif self.current_page > self.count_pages - 3: return self.right_pagination else: - return self.middle__pagination + return self.middle_pagination def row(self, *args): self.inline_keyboard.append([button for button in args])