Chatbots are basically tools which allow to a server to "join" to a chat conversation - "listen" and "post" messages.
Once the bot (the server, remember?) has the information and the content of the messages he can do a lot of things with at. Such as:
- Order a pizza
- Play Trivia
- Tell you about the stocks you like
And whatever the organization who operate it wants.
Here is a presntation I created for my election that will take you from the first begining to create your own Telegram chat-bot with NodeJS, TypeScript, Firebase and more