@@ -24,8 +24,8 @@ export const extn: ContextExtensions = {
2424 async ban ( { admin, reason, userToBan, msg } ) {
2525 const banMessage = await ban ( { admin, reason, userToBan } ) ;
2626
27- const done = this . loggedReply ( banMessage , msg ) . then (
28- scheduleDeletion ( deleteBansAfter )
27+ const done = await this . loggedReply ( banMessage , msg ) . then (
28+ scheduleDeletion ( deleteBansAfter ) ,
2929 ) ;
3030
3131 if ( msg )
@@ -44,9 +44,9 @@ export const extn: ContextExtensions = {
4444 async warn ( { admin, amend, reason, userToWarn, mode, msg } ) {
4545 const warnMessage = await warn ( { admin, amend, reason, userToWarn } ) ;
4646
47- const done = this . loggedReply ( warnMessage , msg , { reply_markup } ) . then (
48- scheduleDeletion ( normalisedDeleteWarnsAfter [ mode ] )
49- ) ;
47+ const done = await this . loggedReply ( warnMessage , msg , {
48+ reply_markup ,
49+ } ) . then ( scheduleDeletion ( normalisedDeleteWarnsAfter [ mode ] ) ) ;
5050
5151 if ( msg )
5252 this . telegram
@@ -63,7 +63,7 @@ export const extn: ContextExtensions = {
6363 ( await this . telegram . forwardMessage (
6464 chats . adminLog ,
6565 reply . chat . id ,
66- reply . message_id
66+ reply . message_id ,
6767 ) ) ;
6868 this . telegram
6969 // @ts -expect-error sendMessage is monkeypatched to accept TgHtml
0 commit comments