from aiogram import Bot, Dispatcher, executor, types
import config as cfg
@dp.callback_query_handler(text='test')
if call.data == test:
await bot.send_message(channelid, cfg.test_text, parse_mode=types.ParseMode.HTML)
from aiogram import types
import datetime
dt = datetime.datetime.now()
dt_time = strftime("%H:%M:%S")
text_test = f"Text sent by time: {dt_time}"