How to Send Hit file Via telegram api

0

I wanted to send a Document via telegram bot api and my document is stored locally … i Tried

https://api.telegram.org/botToken/sendDocument?chat_id=-52&document=C:\Users\Administrator\Desktop\file.txt

But i got Error … Bad Request: failed to get HTTP URL content

This method only works in remote urls … Please help me out how to send documents via bot api…