How to determine the last message container (telegram)

I need to determine the last massage container/div in telegram web (opened in IE)
I need some selector what i can use or UIelement variable.
But last massage have a dynamic container, which change with every new message.
I need to do same manipulation with each new message in one chat.
In last message i want to find some word for start one of flow after.
Thank you