|
|
@ -1552,6 +1552,7 @@ angular.module('myApp.services') |
|
|
|
if (!angular.isString(text)) { |
|
|
|
if (!angular.isString(text)) { |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
peerID = AppPeersManager.getPeerMigratedTo(peerID) || peerID |
|
|
|
options = options || {} |
|
|
|
options = options || {} |
|
|
|
var entities = options.entities || [] |
|
|
|
var entities = options.entities || [] |
|
|
|
if (!options.viaBotID) { |
|
|
|
if (!options.viaBotID) { |
|
|
@ -1740,6 +1741,7 @@ angular.module('myApp.services') |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function sendFile (peerID, file, options) { |
|
|
|
function sendFile (peerID, file, options) { |
|
|
|
|
|
|
|
peerID = AppPeersManager.getPeerMigratedTo(peerID) || peerID |
|
|
|
options = options || {} |
|
|
|
options = options || {} |
|
|
|
var messageID = tempID-- |
|
|
|
var messageID = tempID-- |
|
|
|
var randomID = [nextRandomInt(0xFFFFFFFF), nextRandomInt(0xFFFFFFFF)] |
|
|
|
var randomID = [nextRandomInt(0xFFFFFFFF), nextRandomInt(0xFFFFFFFF)] |
|
|
@ -1924,6 +1926,7 @@ angular.module('myApp.services') |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function sendOther (peerID, inputMedia, options) { |
|
|
|
function sendOther (peerID, inputMedia, options) { |
|
|
|
|
|
|
|
peerID = AppPeersManager.getPeerMigratedTo(peerID) || peerID |
|
|
|
options = options || {} |
|
|
|
options = options || {} |
|
|
|
|
|
|
|
|
|
|
|
var messageID = tempID-- |
|
|
|
var messageID = tempID-- |
|
|
@ -2126,6 +2129,7 @@ angular.module('myApp.services') |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function forwardMessages (peerID, mids, options) { |
|
|
|
function forwardMessages (peerID, mids, options) { |
|
|
|
|
|
|
|
peerID = AppPeersManager.getPeerMigratedTo(peerID) || peerID |
|
|
|
mids = mids.sort() |
|
|
|
mids = mids.sort() |
|
|
|
options = options || {} |
|
|
|
options = options || {} |
|
|
|
|
|
|
|
|
|
|
|