From a8e60b28e00eb7a32e6ea0737bd656ad74e07d43 Mon Sep 17 00:00:00 2001 From: eternnoir Date: Thu, 25 May 2017 11:14:08 +0800 Subject: [PATCH] Fix requirement params. --- telebot/__init__.py | 2 +- telebot/apihelper.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/telebot/__init__.py b/telebot/__init__.py index 4359a9c..8f6e059 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -629,7 +629,7 @@ class TeleBot: return ret def send_invoice(self, chat_id, title, description, invoice_payload, provider_token, currency, prices, - start_parameter=None, photo_url=None, photo_size=None, photo_width=None, photo_height=None, + start_parameter, photo_url=None, photo_size=None, photo_width=None, photo_height=None, need_name=None, need_phone_number=None, need_email=None, need_shipping_address=None, is_flexible=None, disable_notification=None, reply_to_message_id=None, reply_markup=None): diff --git a/telebot/apihelper.py b/telebot/apihelper.py index b9877d9..b5372cd 100644 --- a/telebot/apihelper.py +++ b/telebot/apihelper.py @@ -551,7 +551,7 @@ def get_game_high_scores(token, user_id, chat_id=None, message_id=None, inline_m # Payments (https://core.telegram.org/bots/api#payments) def send_invoice(token, chat_id, title, description, invoice_payload, provider_token, currency, prices, - start_parameter=None, photo_url=None, photo_size=None, photo_width=None, photo_height=None, + start_parameter, photo_url=None, photo_size=None, photo_width=None, photo_height=None, need_name=None, need_phone_number=None, need_email=None, need_shipping_address=None, is_flexible=None, disable_notification=None, reply_to_message_id=None, reply_markup=None): """