YuraNetworkDocumentation libraryPreserved resource

YuraNetwork Bot API

Create bots through @botmother, connect them by token, then receive updates by webhook or polling.

Quick start

  1. Open YuraNetwork and message @botmother.
  2. Send /newbot and follow the wizard.
  3. Store the token. It is shown once.
  4. 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.
Buttons
Inline URL and callback buttons.
Management
profile, commands, webhook, token reset via BotMother.
Groups
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.