<gh_stars>0
from aiogram import types
from ..loader import dp
from content.models import TelegramUser


@dp.callback_query_handler(lambda c: True)
async def send_echo(callback_query: types.CallbackQuery):
    user, created = TelegramUser.objects.get_or_create(
        telegram_id=callback_query.from_user.id)
    await callback_query.message.edit_text(f'Колбек без хендлера'
                                           f'Колбек:'
                                           f'{callback_query.data}')


@dp.message_handler(state=None)
async def bot_echo(message: types.Message):
    user, created = TelegramUser.objects.get_or_create(
        telegram_id=message.from_user.id)
    await message.answer(f"Эхо без состояния."
                         f"Сообщение:\n"
                         f"{message.text}")

from aiogram import types
from ..loader import dp
from content.models import TelegramUser


@dp.callback_query_handler(lambda c: True)
async def send_echo(callback_query: types.CallbackQuery):
    user, created = TelegramUser.objects.get_or_create(
        telegram_id=callback_query.from_user.id)
    await callback_query.message.edit_text(f'Колбек без хендлера'
                                           f'Колбек:'
                                           f'{callback_query.data}')


@dp.message_handler(state=None)
async def bot_echo(message: types.Message):
    user, created = TelegramUser.objects.get_or_create(
        telegram_id=message.from_user.id)
    await message.answer(f"Эхо без состояния."
                         f"Сообщение:\n"
                         f"{message.text}")