Skip to content

Commit

Permalink
Fix bug with default values
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost8Recon committed Aug 3, 2018
1 parent d0f5898 commit 69074b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions skype_chatbot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def run_it():
self.t.start()

@staticmethod
def send_message(bot_id, bot_name, recipient, service, sender, text, text_format):
def send_message(bot_id, bot_name, recipient, service, sender, text, text_format='markdown'):
return send_message(token, bot_id, bot_name, recipient, service, sender, text, text_format)

@staticmethod
Expand All @@ -56,7 +56,7 @@ def create_animation_card(card_type, url, images, title, subtitle, text, buttons
autostart, shareable)

@staticmethod
def send_media(bot_id, bot_name, recipient, service, sender, message_type, url, attachment_name):
def send_media(bot_id, bot_name, recipient, service, sender, message_type, url, attachment_name=None):
return send_media(token, bot_id, bot_name, recipient, service, sender, message_type, url,
attachment_name)

Expand Down
4 changes: 2 additions & 2 deletions skype_chatbot/skype_chatbot.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import requests


def send_message(token, bot_id, bot_name, recipient, service, sender, text, text_format='markdown'):
def send_message(token, bot_id, bot_name, recipient, service, sender, text, text_format):
try:

payload = {
Expand Down Expand Up @@ -119,7 +119,7 @@ def send_card(token, bot_id, bot_name, recipient, reply_to_id, service, sender,


def create_animation_card(card_type, url, images, title, subtitle, text, buttons,
autoloop=True, autostart=True, shareable=True):
autoloop, autostart, shareable):

card_animation = {
"contentType": "application/vnd.microsoft.card." + card_type,
Expand Down

0 comments on commit 69074b5

Please sign in to comment.