Repository

verygram, much telegram

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()

About

0
68
1 year ago

Author

skrtdev