Skip to content

Commit c28197d

Browse files
committed
change duplicateApi default behaviour
1 parent 0a130ee commit c28197d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mytoncore/mytoncore.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,8 @@ def SendFile(self, filePath, wallet=None, **kwargs):
12051205
timeout = kwargs.get("timeout", 30)
12061206
remove = kwargs.get("remove", True)
12071207
duplicateSendfile = self.local.db.get("duplicateSendfile", True)
1208-
duplicateApi = self.local.db.get("duplicateApi", False)
1208+
telemetry = self.local.db.get("sendTelemetry", False)
1209+
duplicateApi = self.local.db.get("duplicateApi", telemetry)
12091210
if not os.path.isfile(filePath):
12101211
raise Exception("SendFile error: no such file '{filePath}'".format(filePath=filePath))
12111212
if timeout and wallet:

0 commit comments

Comments
 (0)