https://github.com/skrtdev/verygram
https://github.com/skrtdev/verygram
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/skrtdev/verygram
- Owner: skrtdev
- License: mit
- Created: 2021-04-19T09:04:42.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-19T09:36:05.000Z (almost 5 years ago)
- Last Synced: 2025-04-06T22:35:45.958Z (11 months ago)
- Language: V
- Size: 2.93 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# verygram, much telegram
```v
module main
import verygram { Bot, SendMessageConfig, Message, private, command}
mut bot := Bot{token: 'TOKEN'}
bot.on_message(private + command('start'), fn(bot Bot, message Message) ? {
bot.send_message(SendMessageConfig{message.from.id, 'Hello'}) ?
})
bot.start()
```