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/916154d73d70ea55b29c3c5cfef1386e to your computer and use it in GitHub Desktop.
Save MKtalk/916154d73d70ea55b29c3c5cfef1386e to your computer and use it in GitHub Desktop.
bothub-sdk 0.1.27 - Markdown 적용
# -*- coding: utf-8 -*-
from __future__ import (absolute_import, division, print_function, unicode_literals)
from bothub_client.bot import BaseBot
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(Markdown('_Hello_')))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment