The following code is used to display message in a Telegram bot.
When the application prints text, it is put in a queue and the queue gets consolidated and is flushed