fix token variable
This commit is contained in:
@@ -7,11 +7,12 @@ from aiogram.types import (
|
||||
InlineQueryResultPhoto,
|
||||
)
|
||||
from bestconfig import Config
|
||||
from loguru import logger
|
||||
|
||||
config = Config()
|
||||
ITEMS_PER_PAGE = 30
|
||||
# Инициализация бота и диспетчера
|
||||
bot = Bot(token=config.token)
|
||||
bot = Bot(token=config.TOKEN)
|
||||
dp = Dispatcher()
|
||||
|
||||
|
||||
@@ -45,7 +46,6 @@ async def inline_query(query: InlineQuery):
|
||||
# Определяем следующий offset
|
||||
next_offset = str(offset + ITEMS_PER_PAGE)
|
||||
|
||||
|
||||
await query.answer(
|
||||
results=results,
|
||||
cache_time=60,
|
||||
|
||||
Reference in New Issue
Block a user