Skip to content

Commit

Permalink
Merge pull request #3 from Semidio/patch-1
Browse files Browse the repository at this point in the history
fix bug
  • Loading branch information
zhongfly committed Nov 3, 2018
2 parents d8482a0 + 6739665 commit a556c9a
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 a556c9a

Please sign in to comment.