<reponame>ExpressApp/pybotx
from botx import Bot, Message

bot = Bot()


@bot.handler
async def my_handler(message: Message) -> None:
    with open("my_file.txt") as f:
        await bot.answer_message("Text that will be sent with file", message, file=f)

from botx import Bot, Message

bot = Bot()


@bot.handler
async def my_handler(message: Message) -> None:
    with open("my_file.txt") as f:
        await bot.answer_message("Text that will be sent with file", message, file=f)