简体   繁体   中英

Telegram bot. How to record a user's response after sending a specific message

How to record a user's response after sending a specific message.

For example what would it look like in the console:

Console.Write("Input some string: ");
string input = Console.ReadLine();

Simple Hack is to create a JSON file with name as the users user.id . Then check the existence for that JSON file during incoming message. If the file exists then write into it.I don't know Javascript but in python i use len() function to check the length of the JSON dict for getting multiple response.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM