fix input notify forget set referer

Signed-off-by: xiehuc <xiehuc@gmail.com>
add a validation on get_group_from_chat

Signed-off-by: xiehuc <xiehuc@gmail.com>