Clarify and fix some docstrings

This commit is contained in:
Lonami Exo
2018-09-04 11:27:10 +02:00
parent a57e9ba2fb
commit bbeb8f4ba3
4 changed files with 21 additions and 9 deletions

View File

@@ -47,7 +47,8 @@ class ButtonMethods(UpdateMethods):
self.add_event_handler(
button.callback,
events.CallbackQuery(data=button.data)
events.CallbackQuery(data=getattr(
button.button, 'data', None))
)
button = button.button