Created
January 31, 2020 18:11
-
-
Save amiryousefi/90b56d2d6869058cb1ea84dedd982868 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@staticmethod | |
def task_button_markup(tasks): | |
keyboard = [] | |
for task in tasks: | |
keyboard.append( | |
[InlineKeyboardButton(task['content'], url=task['url'], callback_data=task['id'])]) | |
markup = InlineKeyboardMarkup(keyboard) | |
return markup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment