This commit is contained in:
Egor Matveev
2022-03-06 15:42:20 +03:00
parent f180442d09
commit 4a3d36e788
3 changed files with 32 additions and 28 deletions

View File

@@ -1,3 +1,5 @@
import os
import telebot
from django.contrib.auth.models import User
from django.core.management.base import BaseCommand
@@ -5,7 +7,7 @@ from telebot.types import Message
from Main.models import UserInfo
bot = telebot.TeleBot("1994460106:AAGrGsCZjF6DVG_T-zycELuVfxnWw8x7UyU")
bot = telebot.TeleBot(os.getenv("TELEGRAM_TOKEN"))
@bot.message_handler(commands=["start"])