Add files via upload

This commit is contained in:
PyMaster 2020-06-23 22:04:24 +03:00 committed by GitHub
parent da0e413464
commit 727a3fef85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

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