https://github.com/erfanium/cybot
Simple framework to create conversational telegram bots
https://github.com/erfanium/cybot
Last synced: 4 months ago
JSON representation
Simple framework to create conversational telegram bots
- Host: GitHub
- URL: https://github.com/erfanium/cybot
- Owner: erfanium
- License: mit
- Created: 2021-05-16T22:30:40.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-16T22:52:53.000Z (about 5 years ago)
- Last Synced: 2025-10-14T15:02:24.009Z (9 months ago)
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cybot
Simple framework to create conversational telegram bots
## Stage: Idea
## Example:
```ts
async function Home(user: User) {
const { result: musician } = await ask.text(`Hi ${user.name}! What is your favorite musician?`)
const { result: song } = await ask.text(`Which song of ${musician} do you like most?`)
const result = await ask.button(`Do you like ${musician}'s latest album?`, ['Yes', 'No'])
if (result === 'Yes') {
// ...
}
}
bot.command('/start', Home)
```