J
J
Jack Reacher2017-08-27 07:39:36
Bots
Jack Reacher, 2017-08-27 07:39:36

How to create a telegram bot for testing with saving the result?

Hello!
I want to create a telegram bot for testing and it is necessary that the user's answers can be saved somewhere in order to see who answered what and collect data in the future. Before that, I made various simple chat bots, media bots, how to save user messages, please tell me.
Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
protven, 2017-08-27
@protven

Try saving to the database! Well, or you can in a file! You can write in notepad. In general, I recommend that you save your answers to the medium that will provide the longevity and reliability of storage you need.

I
iBrm1269, 2017-08-31
@iBrm1269

If the bot is written in nodejs, for example, then in .onMessage the msg.callback_query or msg.data.text parameter is overridden and saved

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question