Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python-telegram-bot send file

c_id = '000011'   
 filename = '/tmp/googledoc.docx'

 context.bot.send_document(chat_id='c_id, document=open('googledoc.docx', 'rb'), filename="googledoc.docx")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #send #file
ADD COMMENT
Topic
Name
7+6 =