At first, to connect my Botpress bot with MS Teams, I followed these procedures from Botpress MsTeams connection page, but in this way, I can't send messages to the bot. I made some research and find out I need to publish my bot as an app. To solve this problem I created a trial version of the Microsoft 365 developer subscription
After that, I created an App with a bot from App Studio and now I have the choice to send the file to the bot but Botpress can't see the file and It can only see the texts. How can I send files to the user and get files from a user from the Teams app using Botpress?
You can send and receive the files using bot. Please check Send and receive files through the bot also check Example for how to upload a file using bot.