![python](https://habrastorage.org/r/w120/webt/5a/de/0e/5ade0efe6f5d5276653463.png)
Python
0
Вклад в тег
import json
from aiogram import types
from aiogram import Bot, Dispatcher, types
from aiogram.types import Message
bot = Bot(token='', parse_mode="HTML")
dp = Dispatcher()
@dp.message()
async def test(message: Message) -> None:
await message.answer(message.text)
async def handler(event, context):
up = json.loads(event['body'])
my_update = types.update.Update(update_id=up['update_id'], message=up['message'])
await dp.feed_update(bot=bot, update=my_update)
return {
'statusCode': 200,
'body': '!'
}