aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRahiel Kasim <rahiel@protonmail.ch>2015-11-30 21:05:57 +0100
committerRahiel Kasim <rahiel@protonmail.ch>2015-11-30 21:05:57 +0100
commit94f0c8bcd16d36d1e52e3247f7bcc09181b11fe6 (patch)
treeac8d98188858bb91d1c35c27597dbbd29a1cb089
parent7dbe354fdd3d8df444347e560c3c59bdf9bcaa5c (diff)
quick fix for too long messages
-rw-r--r--bismillah.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bismillah.py b/bismillah.py
index 46af443..bc1a4d0 100644
--- a/bismillah.py
+++ b/bismillah.py
@@ -96,7 +96,8 @@ def serve(bot, update_id, data):
return
elif quran_type in ("english", "tafsir"):
text = data[quran_type].getAyah(s, a)
- bot.sendMessage(chat_id=chat_id, text=text, reply_markup=reply_markup)
+ bot.sendMessage(chat_id=chat_id, text=text[:4030],
+ reply_markup=reply_markup)
elif quran_type == "arabic":
bot.sendChatAction(chat_id=chat_id,
action=telegram.ChatAction.UPLOAD_PHOTO)