Skip to content

Commit c300195

Browse files
committed
Add provider_data .
1 parent 2493b20 commit c300195

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

‎telebot/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ def send_invoice(self, chat_id, title, description, invoice_payload, provider_to
889889
start_parameter, photo_url=None, photo_size=None, photo_width=None, photo_height=None,
890890
need_name=None, need_phone_number=None, need_email=None, need_shipping_address=None,
891891
is_flexible=None,
892-
disable_notification=None, reply_to_message_id=None, reply_markup=None, provider_data=Noen):
892+
disable_notification=None, reply_to_message_id=None, reply_markup=None, provider_data=None):
893893
result = apihelper.send_invoice(self.token, chat_id, title, description, invoice_payload, provider_token,
894894
currency, prices, start_parameter, photo_url, photo_size, photo_width,
895895
photo_height,

‎tests/test_telebot.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,3 +410,11 @@ def test_send_video_note(self):
410410
tb = telebot.TeleBot(TOKEN)
411411
ret_msg = tb.send_video_note(CHAT_ID, file_data)
412412
assert ret_msg.message_id
413+
414+
def test_send_media_group(self):
415+
tb = telebot.TeleBot(TOKEN)
416+
img1 = 'https://i.imgur.com/CjXjcnU.png'
417+
img2 = 'https://i.imgur.com/CjXjcnU.png'
418+
medias = [types.InputMediaPhoto(img1, "View"), types.InputMediaPhoto(img2, "Dog")]
419+
result = tb.send_media_group(CHAT_ID, medias)
420+
assert len(result) == 2

0 commit comments

Comments
 (0)