From 92fb0c95de7b5a573840e9e9685abe45d3d552c6 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sat, 10 Aug 2019 18:24:24 +0200 Subject: [PATCH] Undo --- src/danog/MadelineProto/TL/Conversion/BotAPI.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/danog/MadelineProto/TL/Conversion/BotAPI.php b/src/danog/MadelineProto/TL/Conversion/BotAPI.php index 2963b24f..50d73045 100644 --- a/src/danog/MadelineProto/TL/Conversion/BotAPI.php +++ b/src/danog/MadelineProto/TL/Conversion/BotAPI.php @@ -493,10 +493,6 @@ trait BotAPI throw new \danog\MadelineProto\Exception(\danog\MadelineProto\Lang::$current_lang['peer_not_in_db']); } $entities[] = ['_' => 'inputMessageEntityMentionName', 'offset' => $offset, 'length' => $length, 'user_id' => $mention['InputUser']]; - } else if (strpos('mailto:', $href) === 0) { - $entities[] = ['_' => 'messageEntityEmail', 'offset' => $offset, 'length' => $length]; - } else if (strpos('tel:', $href) === 0) { - $entities[] = ['_' => 'messageEntityPhone', 'offset' => $offset, 'length' => $length]; } elseif (preg_match('|buttonurl:(.*)|', $href)) { if (!isset($entities['buttons'])) { $entities['buttons'] = [];