mirror of
https://github.com/paul-nameless/tg
synced 2024-11-25 13:20:25 +00:00
Merge pull request #82 from paul-nameless/fix-sending-files
Fix sending files
This commit is contained in:
commit
f76fe5cc29
1 changed files with 3 additions and 3 deletions
|
@ -254,15 +254,15 @@ class Controller:
|
|||
|
||||
@bind(msg_handler, ["sd"])
|
||||
def send_document(self):
|
||||
send_file(self.tg.send_doc)
|
||||
self.send_file(self.tg.send_doc)
|
||||
|
||||
@bind(msg_handler, ["sp"])
|
||||
def send_picture(self):
|
||||
send_file(self.tg.send_photo)
|
||||
self.send_file(self.tg.send_photo)
|
||||
|
||||
@bind(msg_handler, ["sa"])
|
||||
def send_audio(self):
|
||||
send_file(self.tg.send_audio)
|
||||
self.send_file(self.tg.send_audio)
|
||||
|
||||
def send_file(self, send_file_fun, *args, **kwargs):
|
||||
file_path = self.view.status.get_input()
|
||||
|
|
Loading…
Reference in a new issue