Autocomplete function for tg client