bot token

This commit is contained in:
Egor Matveev
2021-11-23 14:10:58 +03:00
parent 72260dc90f
commit ce8b989f24
3 changed files with 30 additions and 15 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("BOT_TOKEN"))
@bot.message_handler(commands=["start"])