This commit is contained in:
8
main.py
8
main.py
@@ -4,16 +4,18 @@ from aiogram import Bot, Dispatcher, F
|
||||
from aiogram.types import Message
|
||||
from aiogram.enums import ParseMode
|
||||
from dotenv import load_dotenv
|
||||
from aiogram.client.default import DefaultBotProperties
|
||||
from aiogram.client.default import DefaultBotProperties
|
||||
|
||||
load_dotenv()
|
||||
|
||||
BOT_TOKENS = os.getenv("BOT_TOKENS", "").split(",")
|
||||
BOT_TOKENS = os.getenv("BOT_TOKENS", "").split(",")
|
||||
|
||||
|
||||
async def send_echo_message(message: Message, bot: Bot):
|
||||
me = await bot.get_me()
|
||||
await message.answer(f"Это бот {me.username}, вы написали \"{message.text}\"")
|
||||
await message.answer(
|
||||
f"Это бот {me.username}, вы написали \"{message.text}\""
|
||||
)
|
||||
|
||||
|
||||
async def start_bot(token: str):
|
||||
|
||||
Reference in New Issue
Block a user