Wechat chatbot with user input and respond

how do i develop a wechat chatbot that allows user to enter a product ID, the bot will then return if anyone else have check that product ID and date and time.

Also how can user input a product ID with comments, so that when other enter the same product ID, it will show the comments by others user.

Example User A: 611222

Bot respond: (@ User A) 611222 no search yet

User B: 422111 awesome product

User C: 422111

Bot respond: (@ User C) 422111 awesome product by User B on 10 Jan 2018 3:40pm

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eaabbf-1ff9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eaabbf-1ff9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?