How do I send a photo to chat without compression, as a file. When I implement it with the current method, the file is sent as a document without an extension.
bot = TeleBot("API")
@bot.message_handler(content_types=['text'])
def send(message):
with open("5.jpg", "rb") as file:
f = file.read()
bot.send_document(message.chat.id, document=f)
bot.polling(True)