Skip to content

Commit

Permalink
Update telegram-asf.py
Browse files Browse the repository at this point in the history
报错 NameError: name 'auth_headers' is not defined
  • Loading branch information
Semidio authored Nov 3, 2018
1 parent d8482a0 commit 6739665
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions telegram-asf.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def __init__(self, ipc='http://127.0.0.1:1242/', password='', timeout=20):
self.timeout = timeout
self.headers=dict()
if password:
auth_headers['Authentication'] = password
self.headers['Authentication'] = password

def get_bot(self):
url = urljoin(ipc_address,'Api/Bot/ASF')
Expand Down Expand Up @@ -324,4 +324,4 @@ def error(bot, update, error):
updater.dispatcher.add_error_handler(error)

updater.start_polling()
updater.idle()
updater.idle()

0 comments on commit 6739665

Please sign in to comment.