adding
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
from django.conf import settings
|
||||
|
||||
from .bot_api import send_bot_message
|
||||
|
||||
TELEGRAM_BASE_URL = "https://api.telegram.org"
|
||||
|
||||
|
||||
def send_telegram(chat_id: str, text: str) -> bool:
|
||||
return send_bot_message(TELEGRAM_BASE_URL, settings.TELEGRAM_BOT_TOKEN, chat_id, text)
|
||||
Reference in New Issue
Block a user