adding
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user