createConfigFile method
void
createConfigFile()
Implementation
void createConfigFile() async {
try {
final file = await File("${Directory.current.path}/config.json").create();
final writer = file.openWrite();
writer.write('''
{
"telegram_chat_id": "",
"botToken": ""
}
''');
writer.close();
} catch (_) {
stderr.write('creating config.json failed!');
exit(2);
}
}