NambaOne bot api and bot chat emulator
Mini app that emulates chat window with bot and BotAPI server of NambaOne.
May come handy for testing your own made bots cause testing with real device and real server requires “white” IP address server to host your bot.
https://api.namba1.co
to http://127.0.0.1:3000/api
bot_host
in settings.json
so the server could send events to your bot
yarn or npm install
yarn build or npm run build
yarn serve or npm run serve
Open http://127.0.0.1:3000 in your browser
You’ll see chat window. From there you can send events such as user/follow
, user/unfollow
and mainly message/new
by sending message.
chats/:chat_id/write
all it’s content will appear as bot’s message in your chat window. If message type is media/image
, image will be downloaded from actual namba1 servers and shown in your chat window as regular imageAll other information about request sent by your bot will be logged in default browser console log, this information includes:
here is the screenshot of using this app with simple echo bot
contributing is highly appreciated