Merge pull request #82 from paul-nameless/fix-sending-files

Fix sending files
This commit is contained in:
Nameless 2020-06-20 12:20:49 +08:00 committed by GitHub
commit f76fe5cc29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()