Chat command get report file from at command answer

i want get report and save on a file (txt or ...) from chat command
how i can do this work ?

What “chat” command, in particular?

a command for send at command on tty ports

You need to be a lot more specific than that. It may be that the software you are using has a feature to "log" the traffic. Otherwise, you'll need some way to provide an intermediate process that receives commands from the driving software, relays them to the "real" ttty, and the reverse as well.