Skip to content

Commit

Permalink
Add inline arg to VkKeyboard (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrokenFG authored and python273 committed Oct 29, 2019
1 parent 670ac00 commit 4bbb8d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vk_api/keyboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,16 @@ class VkKeyboard(object):
:type one_time: bool
"""

__slots__ = ('one_time', 'lines', 'keyboard')
__slots__ = ('one_time', 'lines', 'keyboard', 'inline')

def __init__(self, one_time=False):
def __init__(self, one_time=False, inline=False):
self.one_time = one_time
self.inline = inline
self.lines = [[]]

self.keyboard = {
'one_time': self.one_time,
'inline': self.inline,
'buttons': self.lines
}

Expand Down

0 comments on commit 4bbb8d5

Please sign in to comment.