Skip to content

Commit

Permalink
fix Telegram dotenv
Browse files Browse the repository at this point in the history
  • Loading branch information
Andcool-Systems committed Feb 6, 2024
1 parent 2a8e480 commit 607883c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions Telegram_provider/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TOKEN=6423586916:AAG2Fi0Su0qoJIC9EZjX-UL23ZVU_WGZoJg
4 changes: 3 additions & 1 deletion Telegram_provider/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@
from aiogram.methods import DeleteWebhook
from prisma import Prisma
import os
from dotenv import load_dotenv
import time
import asyncio
import io
import aiohttp

"""Создание всех нужных объектов"""
bot = Bot(token="6423586916:AAF9HVUbtsiuE7I1UKn9QfMkn82KM8NHKLU")
load_dotenv()
bot = Bot(token=os.getenv("TOKEN"))
dp = Dispatcher()
db = Prisma()
version = "beta 0.0.1"
Expand Down

0 comments on commit 607883c

Please sign in to comment.