telegram-base: fixed bug in read_state