add check for Osmand bot
This commit is contained in:
parent
a12f2eca5a
commit
87879559bb
1 changed files with 2 additions and 1 deletions
|
@ -392,7 +392,8 @@ class TelegramHelper private constructor() {
|
|||
val oldContent = message.content
|
||||
if (oldContent is TdApi.MessageText) {
|
||||
message.content = parseOsmAndBotLocation(oldContent.text.text)
|
||||
} else if (oldContent is TdApi.MessageLocation) {
|
||||
} else if (oldContent is TdApi.MessageLocation &&
|
||||
(isOsmAndBot(message.senderUserId) || isOsmAndBot(message.viaBotUserId))) {
|
||||
message.content = parseOsmAndBotLocation(message)
|
||||
}
|
||||
removeOldMessages(message.senderUserId, message.chatId)
|
||||
|
|
Loading…
Reference in a new issue