Skip to content

Commit

Permalink
✍️ Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
HeySreelal committed Sep 8, 2024
1 parent b88ce46 commit 7798c5c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -391,14 +391,14 @@ class AutoReplyEnforcer implements Transformer {
@override
Future<Map<String, dynamic>> transform(
APICaller call,
APIMethod method,
Payload payload,
) async {
APIMethod method, [
Payload? payload,
]) async {
final isSendMethod = APIMethod.sendMethods.contains(method);
final isNotChatAction = method != APIMethod.sendChatAction;
if (isSendMethod && isNotChatAction) {
payload.params["reply_markup"] = ForceReply().toJson();
payload!.params["reply_markup"] = ForceReply().toJson();
}
return await call(method, payload);
Expand Down

0 comments on commit 7798c5c

Please sign in to comment.