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