File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Instagram Reels Bot/Helpers/Instagram Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff 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>
Original file line number Diff line number Diff 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" ] != "" )
You can’t perform that action at this time.
0 commit comments