Last active
January 29, 2018 07:31
-
-
Save MKtalk/e33a2bc89e0af649cfc83d8ef65d39df to your computer and use it in GitHub Desktop.
bothub-sdk 0.1.27 html style
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
# -*- coding: utf-8 -*- | |
from __future__ import (absolute_import, division, print_function, unicode_literals) | |
from bothub_client.bot import BaseBot | |
from bothub_client.messages import HTML | |
from bothub_client.messages import Markdown | |
from bothub_client.messages import Message | |
class Bot(BaseBot): | |
@channel() | |
def default_message(self, event, context): | |
self.send_message('Hello') | |
self.send_message(Message(event).set_text(Markdown('*Hello*'))) | |
self.send_message(Message(event).set_text(HTML('<i>Hello</i>'))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment