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])