add backend base to the project
This commit is contained in:
@@ -0,0 +1 @@
|
||||
from django.core.mail import send_mail
|
||||
@@ -0,0 +1,5 @@
|
||||
from rest_framework.pagination import LimitOffsetPagination
|
||||
|
||||
class StructurePagination(LimitOffsetPagination):
|
||||
default_limit = 10
|
||||
max_limit = 100
|
||||
@@ -0,0 +1,8 @@
|
||||
import telebot
|
||||
from django.conf import settings
|
||||
|
||||
|
||||
bot = telebot.TeleBot(settings.TELEGRAM_BOT_TOKEN)
|
||||
|
||||
def send_telegram_message(chat_id, message):
|
||||
bot.send_message(chat_id, message)
|
||||
Reference in New Issue
Block a user