|
@@ -286,6 +286,9 @@ export async function getInputEntity(
|
|
// will work with accessHash = 0. Similar for channels.getChannels.
|
|
// will work with accessHash = 0. Similar for channels.getChannels.
|
|
// If we're not a bot but the user is in our contacts, it seems to work
|
|
// If we're not a bot but the user is in our contacts, it seems to work
|
|
// regardless. These are the only two special-cased requests.
|
|
// regardless. These are the only two special-cased requests.
|
|
|
|
+ if (typeof peer === "number"){
|
|
|
|
+ peer = returnBigInt(peer);
|
|
|
|
+ }
|
|
peer = utils.getPeer(peer);
|
|
peer = utils.getPeer(peer);
|
|
if (peer instanceof Api.PeerUser) {
|
|
if (peer instanceof Api.PeerUser) {
|
|
const users = await client.invoke(
|
|
const users = await client.invoke(
|