20 lines
829 B
C
20 lines
829 B
C
/* Отправка уже подготовленного изображения в канал: MIME выбирается по расширению, width/height даёт caller.
|
|
* Не декодирует и не масштабирует изображение; ставит копирование/индексацию в chat_core/media_index.
|
|
* 0 = запрос поставлен в uasync, -1 = отказ. src_file_path должен существовать до завершения задачи. */
|
|
#ifndef PHOTO_SENDER_H
|
|
#define PHOTO_SENDER_H
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
int photo_send(const char* channel_id, const char* src_file_path, const char* db_path,
|
|
int width, int height, const uint8_t reply_to[32], uint64_t request_id);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|