add backend base to the project

This commit is contained in:
Parsa Nazer
2024-12-05 14:07:57 +03:30
parent 9ab9418b60
commit 5c136874e1
13 changed files with 625 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
from django.core.mail import send_mail
+5
View File
@@ -0,0 +1,5 @@
from rest_framework.pagination import LimitOffsetPagination
class StructurePagination(LimitOffsetPagination):
default_limit = 10
max_limit = 100
+8
View File
@@ -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)