Merge pull request #169 from trollknurr/little-readme-extend

Little document extend
This commit is contained in:
Leandro Toledo 2016-02-01 21:22:35 -02:00
commit 3e7dc705db

View file

@ -283,6 +283,10 @@ To post an image file via URL::
>>> bot.sendPhoto(chat_id=chat_id, photo='https://telegram.org/img/t_logo.png')
To post an image file from disk::
>>> bot.sendPhoto(chat_id=chat_id, photo=open('tests/test.png', 'rb'))
To post a voice file from disk::
>>> bot.sendVoice(chat_id=chat_id, voice=open('tests/telegram.ogg', 'rb'))