2015-07-09 03:33:13 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
|
2015-07-12 15:39:11 +02:00
|
|
|
from .replymarkup import ReplyMarkup
|
2015-07-09 03:33:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
class ReplyKeyboardHide(ReplyMarkup):
|
|
|
|
def __init__(self,
|
|
|
|
hide_keyboard=True,
|
|
|
|
selective=None):
|
|
|
|
self.hide_keyboard = hide_keyboard
|
|
|
|
self.selective = selective
|
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
def de_json(data):
|
|
|
|
return ReplyKeyboardHide(hide_keyboard=data.get('hide_keyboard', None),
|
|
|
|
selective=data.get('selective', None))
|
|
|
|
|
2015-07-20 04:25:44 +02:00
|
|
|
def to_dict(self):
|
2015-07-20 04:06:04 +02:00
|
|
|
data = {'hide_keyboard': self.hide_keyboard}
|
2015-07-09 03:33:13 +02:00
|
|
|
if self.selective:
|
2015-07-20 04:06:04 +02:00
|
|
|
data['selective'] = self.selective
|
|
|
|
return data
|