Question: how long does it take to get through bangkok immigration?
Answer: It can take 60 + minutes from landing to clearing customs. Check in desks close 40 minutes before flight time. Include the time to walk to Domestic check in you will never make the 19:40 flight.