@@ -28,10 +28,10 @@ public async Task<bool> ExecuteAsync(TelegramBotClient botClient, Update update)
28
28
Vars . CurrentConf . ConfSyncInterval = 0 ;
29
29
_ = await botClient . SendTextMessageAsync ( update . Message . From . Id ,
30
30
Vars . CurrentLang . Message_AutoSaveDisabled ,
31
- ParseMode . Markdown ,
32
- false ,
33
- Vars . CurrentConf . DisableNotifications ,
34
- update . Message . MessageId ) . ConfigureAwait ( false ) ;
31
+ parseMode : ParseMode . Markdown ,
32
+ protectContent : false ,
33
+ disableNotification : Vars . CurrentConf . DisableNotifications ,
34
+ messageThreadId : update . Message . MessageId ) . ConfigureAwait ( false ) ;
35
35
if ( Vars . SyncConf != null ) Vars . SyncConf . Interrupt ( ) ;
36
36
return true ;
37
37
}
@@ -40,17 +40,17 @@ public async Task<bool> ExecuteAsync(TelegramBotClient botClient, Update update)
40
40
Vars . CurrentConf . ConfSyncInterval = interval ;
41
41
_ = await botClient . SendTextMessageAsync ( update . Message . From . Id ,
42
42
Vars . CurrentLang . Message_AutoSaveEnabled . Replace ( "$1" , ( interval / 1000 ) . ToString ( ) ) ,
43
- ParseMode . Markdown ,
44
- false ,
45
- Vars . CurrentConf . DisableNotifications ,
46
- update . Message . MessageId ) . ConfigureAwait ( false ) ;
43
+ parseMode : ParseMode . MarkdownV2 ,
44
+ protectContent : false ,
45
+ disableNotification : Vars . CurrentConf . DisableNotifications ,
46
+ messageThreadId : update . Message . MessageId ) . ConfigureAwait ( false ) ;
47
47
if ( interval < 5000 )
48
48
_ = await botClient . SendTextMessageAsync ( update . Message . From . Id ,
49
49
Vars . CurrentLang . Message_AutoSaveIntervalTooShort . Replace ( "$1" , interval . ToString ( ) ) ,
50
- ParseMode . Markdown ,
51
- false ,
52
- Vars . CurrentConf . DisableNotifications ,
53
- update . Message . MessageId ) . ConfigureAwait ( false ) ;
50
+ parseMode : ParseMode . MarkdownV2 ,
51
+ protectContent : false ,
52
+ disableNotification : Vars . CurrentConf . DisableNotifications ,
53
+ messageThreadId : update . Message . MessageId ) . ConfigureAwait ( false ) ;
54
54
if ( ( Vars . SyncConf == null ) || ! Vars . SyncConf . IsAlive )
55
55
{
56
56
Vars . SyncConf = new Thread ( ( ) => Methods . ThrSyncConf ( ) ) ;
@@ -63,10 +63,10 @@ public async Task<bool> ExecuteAsync(TelegramBotClient botClient, Update update)
63
63
Log ( $ "Failed to process autosave command: { ex } ", "BOT" , LogLevel . Error ) ;
64
64
_ = await botClient . SendTextMessageAsync ( update . Message . From . Id ,
65
65
Vars . CurrentLang . Message_GeneralFailure . Replace ( "$1" , ex . ToString ( ) ) ,
66
- ParseMode . Default ,
67
- false ,
68
- Vars . CurrentConf . DisableNotifications ,
69
- update . Message . MessageId ) . ConfigureAwait ( false ) ;
66
+ parseMode : ParseMode . MarkdownV2 ,
67
+ protectContent : false ,
68
+ disableNotification : Vars . CurrentConf . DisableNotifications ,
69
+ messageThreadId : update . Message . MessageId ) . ConfigureAwait ( false ) ;
70
70
return true ;
71
71
}
72
72
}
0 commit comments