YuraNetwork Bot API
Create bots through @botmother, connect them by token, then receive updates by webhook or polling.
Quick start
- Open YuraNetwork and message
@botmother. - Send
/newbotand follow the wizard. - Store the token. It is shown once.
- Use HTTPS webhooks or
getUpdates.
Authentication
Authorization: Bearer ynbot_xxx
Webhook
curl -X POST https://web.yuranetwork.com/api/yuragram/bot/setWebhook \
-H "Authorization: Bearer ynbot_xxx" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com/yura-bot-webhook"}'
Polling
curl https://web.yuranetwork.com/api/yuragram/bot/getUpdates \ -H "Authorization: Bearer ynbot_xxx"
Send a message
curl -X POST https://web.yuranetwork.com/api/yuragram/bot/sendMessage \
-H "Authorization: Bearer ynbot_xxx" \
-H "Content-Type: application/json" \
-d '{"chat_id":"CHAT_ID","text":"Hello"}'
Deep links
https://web.yuranetwork.com/bot/MyBot?start=payload yuranetwork://bot/MyBot?start=payload
Available areas
Messages
send, edit, delete, photos, files, video, audio, stickers.
send, edit, delete, photos, files, video, audio, stickers.
Buttons
Inline URL and callback buttons.
Inline URL and callback buttons.
Management
profile, commands, webhook, token reset via BotMother.
profile, commands, webhook, token reset via BotMother.
Groups
privacy mode plus admin methods when the bot is admin.
privacy mode plus admin methods when the bot is admin.
Security model
Bots never get database, server, session, socket, or internal credential access. They only use scoped Bot API tokens and public events.