Skip to content

Commit

Permalink
Keeping 2.7 compatibility with signature
Browse files Browse the repository at this point in the history
  • Loading branch information
xlopo committed Jun 30, 2015
1 parent 9eea750 commit 76572ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions twx/botapi/botapi.py
Expand Up @@ -631,8 +631,8 @@ class TelegramBotRPCRequest:

api_url_base = 'https://api.telegram.org/bot'

def __init__(self, api_method, token, params=None, on_result=None, on_success=None,
on_error=None, files=None, request_method=RequestMethod.POST, *, callback=None):
def __init__(self, api_method, token, params=None, on_result=None, on_success=None, callback=None,
on_error=None, files=None, request_method=RequestMethod.POST):
reply_markup = params.get('reply_markup') if params else None
if reply_markup is not None:
params['reply_markup'] = reply_markup.serialize()
Expand Down

0 comments on commit 76572ba

Please sign in to comment.