[TelegramBridge] Add test cases for detectParameters

This commit is contained in:
Eugene Molotov 2021-06-05 09:22:25 +05:00
parent c580219627
commit 973e49d93e
1 changed files with 5 additions and 0 deletions

View File

@ -13,6 +13,11 @@ class TelegramBridge extends BridgeAbstract {
)
)
);
const TEST_DETECT_PARAMETERS = array(
'https://t.me/s/durov' => array('username' => 'durov'),
'https://t.me/durov' => array('username' => 'durov'),
'http://t.me/durov' => array('username' => 'durov'),
);
const CACHE_TIMEOUT = 900; // 15 mins