Add files via upload
This commit is contained in:
parent
da0e413464
commit
727a3fef85
@ -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
|
||||
|
@ -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])
|
||||
|
Reference in New Issue
Block a user