diff --git a/wallamanta/helpers.py b/wallamanta/helpers.py index 8bda1e6..afa55b6 100644 --- a/wallamanta/helpers.py +++ b/wallamanta/helpers.py @@ -6,6 +6,7 @@ import constants import pytz import walladb import asyncio +import json from newrelic_telemetry_sdk import Event, EventClient from PIL import Image, ImageDraw, ImageFont @@ -174,7 +175,7 @@ def send_article(article, product): 'photo': image, 'caption': (None, text), 'parse_mode': (None, ParseMode.MARKDOWN_V2), - 'reply_markup': (None, keyboard), + 'reply_markup': (None, json.dumps(keyboard)), } response = requests.post(f'https://api.telegram.org/bot{constants.TELEGRAM_TOKEN}/sendPhoto', files=files)