Skip to content

Commit

Permalink
Update telegram-nearby.js
Browse files Browse the repository at this point in the history
  • Loading branch information
t0mer committed Dec 4, 2023
1 parent 5cda616 commit f0416fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/telegram-nearby.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function sleep(ms) {
}

class TelegramNearby {
constructor(apiId, apiHash) {
constructor(apiId, apiHash, lat, lon) {
const tdLibraryPath = getTdjson();
console.log(`Lib Path: ${tdLibraryPath}`)

Expand All @@ -35,8 +35,8 @@ class TelegramNearby {
.invoke({
_: 'searchChatsNearby',
location: {
latitude: position.lat,
longitude: position.lon,
latitude: lat,
longitude: lon,
horizontal_accuracy: Math.random() * (10.12 - 1.02) + 1.02,
},
})
Expand Down

0 comments on commit f0416fb

Please sign in to comment.