@@ -37,7 +37,7 @@ def setUp(self):
3737 self .type = 'voice'
3838 self .voice_file_id = 'voice file id'
3939 self .title = 'title'
40- self .description = 'description '
40+ self .caption = 'caption '
4141 self .input_message_content = telegram .InputTextMessageContent ('input_message_content' )
4242 self .reply_markup = telegram .InlineKeyboardMarkup ([[
4343 telegram .InlineKeyboardButton ('reply_markup' )
@@ -48,7 +48,7 @@ def setUp(self):
4848 'id' : self .id ,
4949 'voice_file_id' : self .voice_file_id ,
5050 'title' : self .title ,
51- 'description ' : self .description ,
51+ 'caption ' : self .caption ,
5252 'input_message_content' : self .input_message_content .to_dict (),
5353 'reply_markup' : self .reply_markup .to_dict (),
5454 }
@@ -60,7 +60,7 @@ def test_voice_de_json(self):
6060 self .assertEqual (voice .id , self .id )
6161 self .assertEqual (voice .voice_file_id , self .voice_file_id )
6262 self .assertEqual (voice .title , self .title )
63- self .assertEqual (voice .description , self .description )
63+ self .assertEqual (voice .caption , self .caption )
6464 self .assertDictEqual (voice .input_message_content .to_dict (),
6565 self .input_message_content .to_dict ())
6666 self .assertDictEqual (voice .reply_markup .to_dict (), self .reply_markup .to_dict ())
0 commit comments