Skip to content

Commit

Permalink
fix: use random hash for search (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
rojvv authored May 13, 2023
1 parent b4b2264 commit da83432
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/client/messages.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { Api } from "../tl/api.js";
import { groupBy, isArrayLike, TotalList } from "../helpers.ts";
import {
generateRandomBigInt,
groupBy,
isArrayLike,
TotalList,
} from "../helpers.ts";
import { EntityType_, entityType_ } from "../tl/helpers.ts";
import { CustomMessage } from "../tl/custom/message.ts";
import { AbstractTelegramClient } from "./abstract_telegram_client.ts";
Expand Down Expand Up @@ -135,7 +140,7 @@ export class _MessagesIter extends RequestIter {
limit: 0,
maxId: 0,
minId: 0,
hash: bigInt.zero,
hash: generateRandomBigInt(),
fromId: fromUser,
});
if (
Expand Down

0 comments on commit da83432

Please sign in to comment.