Skip to content

Commit

Permalink
added send_document
Browse files Browse the repository at this point in the history
send_document is undocumented in tg, I found it with autocomplete via tab.
  • Loading branch information
luckydonald committed Sep 18, 2014
1 parent 072c5f6 commit ea331eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pytg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ def send_video(self, peer, path):
self.tgin.write(' '.join(['send_video', peer, path]) + '\n')
self.tgin.flush()

def send_document(self, peer, path):
self.tgin.write(' '.join(['send_document', peer, path]) + '\n')
self.tgin.flush()

def send_text(self, peer, path):
self.tgin.write(' '.join(['send_text', peer, path]) + '\n')
self.tgin.flush()
Expand Down

0 comments on commit ea331eb

Please sign in to comment.