Why python write large error text ind cmd when i try send photo? I already google it. Nothing.
bot.send_photo(message.chat.id, photo=open(r'E:\site_work\telebot\img\samples\1.jpg'))
bot.send_message(message.from_user.id, "Look photo", reply_markup=markup)
Error:
File "C:\Users\User\AppData\Programs\Python\Python310\lib\encodings\cp1251.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position 1015: character maps to <undefined>
Thanks.