telegram_bot_api_file static method

TelegramBotApiFileData telegram_bot_api_file({
  1. required File file,
})

Implementation

static TelegramBotApiFileData telegram_bot_api_file({
  required File file,
}) {
  return TelegramBotApiFileData(
    buffer_data: file.readAsBytesSync(),
    name: basename(file.path),
  );
}