Fix
This commit is contained in:
parent
e08116ae07
commit
dbdcc7b5d9
6
main.py
6
main.py
@ -3,7 +3,7 @@ import logging
|
|||||||
import requests
|
import requests
|
||||||
from aiogram import Bot, Dispatcher, types, BaseMiddleware
|
from aiogram import Bot, Dispatcher, types, BaseMiddleware
|
||||||
from aiogram.filters import Command
|
from aiogram.filters import Command
|
||||||
from aiogram.types import Message, InputFile, FSInputFile
|
from aiogram.types import Message, FSInputFile
|
||||||
from aiogram.types import InlineKeyboardButton, InlineKeyboardMarkup
|
from aiogram.types import InlineKeyboardButton, InlineKeyboardMarkup
|
||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
import asyncio
|
import asyncio
|
||||||
@ -16,7 +16,7 @@ LOG_LEVEL = os.getenv("LOG_LEVEL")
|
|||||||
CAT_API = os.getenv('CAT_TOKEN')
|
CAT_API = os.getenv('CAT_TOKEN')
|
||||||
DOG_API = os.getenv('DOG_TOKEN')
|
DOG_API = os.getenv('DOG_TOKEN')
|
||||||
BOT_OWNER_ID = os.getenv('BOT_OWNER')
|
BOT_OWNER_ID = os.getenv('BOT_OWNER')
|
||||||
if not API_TOKEN:
|
if not BOT_TOKEN:
|
||||||
raise ValueError("No API_TOKEN provided. Please set the API_TOKEN environment variable.")
|
raise ValueError("No API_TOKEN provided. Please set the API_TOKEN environment variable.")
|
||||||
if not CAT_API:
|
if not CAT_API:
|
||||||
raise ValueError("No CAT_TOKEN provided. Please set the CAT_TOKEN environment variable.")
|
raise ValueError("No CAT_TOKEN provided. Please set the CAT_TOKEN environment variable.")
|
||||||
@ -204,8 +204,6 @@ async def send_file(message: Message):
|
|||||||
async def default_message(message: types.Message):
|
async def default_message(message: types.Message):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
async def main():
|
async def main():
|
||||||
# Запуск polling
|
# Запуск polling
|
||||||
await dp.start_polling(bot)
|
await dp.start_polling(bot)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user