First Script
Writing Your First Message
-
Create a new script file:
Create a new file namedmy_first_chapter.yarn
. -
Create your first node:
In this new file, write your first Yarn node:title: my_first_node
---
Hello, I’m your first message
-> And I’m your first button
I can help you write stories!
=== -
Save the file:
Once your script is ready, save it. -
Link your new node:
- Open the
start.yarn
file. - Link your new node by adding
<<jump my_first_node>>
where indicated in the comment:
// Jump to your start node
<<jump my_first_node>>
=== - Open the
Creating a Bot on Telegram
To create a bot, follow these steps:
- Open Telegram and search for BotFather.
- Start a chat with BotFather by sending
/start
. - Use the
/newbot
command to create a new bot. - Follow the instructions to choose a name and username for your bot (the username must end with "bot").
- Once the bot is created, BotFather will provide you with a token. Save this token; you'll need it later.
Uploading Your Story
- Go to t-Plot Builder.
- Add your new build by clicking Add build.
- (Optional) In the Settings tab, enter your bot’s token and username (without
@
orhttps://t.me/
). For example, if your bot’s username is@my_super_cool_bot
, entermy_super_cool_bot
. - You can test your story by navigating to the Publish tab and clicking Run new Player.
Launching the Bot
If you’ve entered your bot’s token and username, go to the Publish tab and click Start Bot.