Skip to content

Instantly share code, notes, and snippets.

@MKtalk
Last active January 29, 2018 07:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MKtalk/e33a2bc89e0af649cfc83d8ef65d39df to your computer and use it in GitHub Desktop.
Save MKtalk/e33a2bc89e0af649cfc83d8ef65d39df to your computer and use it in GitHub Desktop.
bothub-sdk 0.1.27 html style
# -*- 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