Uncategorized

Telegram bot: using path to Excel in host PythonAnyWhere for Python file


I am a beginner in Telegram bot development. I have written code where I send messages from an Excel file based on the received messages. Here is the code to load the Excel file on my laptop:

pythoncode
excel_file_path = “C:\Users\Alex\Desktop\Project.xlsx”
excel_data = pd.read_excel(excel_file_path, sheet_name=excel_sheet_name)

I have deployed the bot on the PythonAnywhere hosting. Could you please guide me on how to correctly specify the file path or provide a web URL?

My code should work on PythonAnywhere hosting



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *