This commit is contained in:
2026-08-24 15:54:08 +03:30
commit 236002a87c
133 changed files with 5946 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
# بله Bot API تلگرام‌سازگار است. اگر base_url حساب تو فرق دارد، همین یک
# مقدار را عوض کن — بقیه‌ی منطق در bot_api.py مشترک است.
from django.conf import settings
from .bot_api import send_bot_message
BALE_BASE_URL = "https://tapi.bale.ai"
def send_bale(chat_id: str, text: str) -> bool:
return send_bot_message(BALE_BASE_URL, settings.BALE_BOT_TOKEN, chat_id, text)