setOnline method
Sets TDLib's online option. Set it true while the app is visible and
false in the background; TDLib does less work for offline clients.
Implementation
Future<void> setOnline(bool online) => invoke(SetOption(
name: 'online',
value: OptionValueBoolean(value: online),
));