@@ -29,9 +29,9 @@ public async Task<bool> ExecuteAsync(TelegramBotClient botClient, Update update)
29
29
_ = await botClient . SendTextMessageAsync ( update . Message . From . Id ,
30
30
Vars . CurrentLang . Message_AutoSaveDisabled ,
31
31
parseMode : ParseMode . Markdown ,
32
- protectContent : false ,
32
+ linkPreviewOptions : false ,
33
33
disableNotification : Vars . CurrentConf . DisableNotifications ,
34
- messageThreadId : update . Message . MessageId ) . ConfigureAwait ( false ) ;
34
+ replyParameters : update . Message . MessageId ) . ConfigureAwait ( false ) ;
35
35
if ( Vars . SyncConf != null ) Vars . SyncConf . Interrupt ( ) ;
36
36
return true ;
37
37
}
@@ -41,16 +41,16 @@ public async Task<bool> ExecuteAsync(TelegramBotClient botClient, Update update)
41
41
_ = await botClient . SendTextMessageAsync ( update . Message . From . Id ,
42
42
Vars . CurrentLang . Message_AutoSaveEnabled . Replace ( "$1" , ( interval / 1000 ) . ToString ( ) ) ,
43
43
parseMode : ParseMode . Markdown ,
44
- protectContent : false ,
44
+ linkPreviewOptions : false ,
45
45
disableNotification : Vars . CurrentConf . DisableNotifications ,
46
- messageThreadId : update . Message . MessageId ) . ConfigureAwait ( false ) ;
46
+ replyParameters : 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
50
parseMode : ParseMode . Markdown ,
51
- protectContent : false ,
51
+ linkPreviewOptions : false ,
52
52
disableNotification : Vars . CurrentConf . DisableNotifications ,
53
- messageThreadId : update . Message . MessageId ) . ConfigureAwait ( false ) ;
53
+ replyParameters : update . Message . MessageId ) . ConfigureAwait ( false ) ;
54
54
if ( ( Vars . SyncConf == null ) || ! Vars . SyncConf . IsAlive )
55
55
{
56
56
Vars . SyncConf = new Thread ( ( ) => Methods . ThrSyncConf ( ) ) ;
@@ -64,9 +64,9 @@ public async Task<bool> ExecuteAsync(TelegramBotClient botClient, Update update)
64
64
_ = await botClient . SendTextMessageAsync ( update . Message . From . Id ,
65
65
Vars . CurrentLang . Message_GeneralFailure . Replace ( "$1" , ex . ToString ( ) ) ,
66
66
parseMode : ParseMode . Markdown ,
67
- protectContent : false ,
67
+ linkPreviewOptions : false ,
68
68
disableNotification : Vars . CurrentConf . DisableNotifications ,
69
- messageThreadId : update . Message . MessageId ) . ConfigureAwait ( false ) ;
69
+ replyParameters : update . Message . MessageId ) . ConfigureAwait ( false ) ;
70
70
return true ;
71
71
}
72
72
}
0 commit comments