Encrypted app Telegram reaches agreement with Russia