ctucx.git: ctucxbot

[nimlang] A telegram bot

1 
2 
3 
4 
5 import asyncdispatch, telebot, strutils, times 

proc utcCommand* (bot: Telebot, command: Command): Future[bool] {.async.} =
  let time = now().utc 
  discard await bot.sendMessage(command.message.chat.id, time.format("dd'.'MM'.'yyyy' 'HH':'mm"), replyToMessageId = command.message.messageId, parseMode = "markdown")