Rewrite MessengerService

Signed-off-by: SButterfly <sbutterfly@outlook.com>