Skip to content

Commit 45abb33

Browse files
committed
Move setdevice
1 parent 4b3fe78 commit 45abb33

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Instagram Reels Bot/Helpers/Instagram/IGAccount.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ public void InitializeAPI()
4343
StaticDevice.IGBandwidthTotalTimeMS = rand.Next(781, 999).ToString();
4444
StaticDevice.DeviceId = ApiRequestMessage.GenerateDeviceIdFromGuid(StaticDevice.DeviceGuid);
4545
}
46-
instaApi.SetDevice(StaticDevice);
47-
Console.WriteLine(instaApi.GetCurrentDevice().DeviceId);
4846
}
4947

5048
/// <summary>

Instagram Reels Bot/Helpers/Instagram/InstagramProcessor.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ public void InstagramLogin(IGAccount account)
7272
//Set the user:
7373
instaApi.SetUser(account);
7474

75+
//Set the device
76+
instaApi.SetDevice(account.StaticDevice);
77+
Console.WriteLine(instaApi.GetCurrentDevice().DeviceId);
78+
7579
//Get the state file
7680
string stateFile;
7781
if (config["StateFile"] != null && config["StateFile"] != "")

0 commit comments

Comments
 (0)