abirahmad1208/Dev_Helper_X_BotPublic · Bot Template

An essential utility Telegram bot for developers to quickly encode/decode Base64, generate MD5/SHA-256 hashes, format JSON, convert text, and create instant QR codes!

Utilitydeveloper-toolsbase64encoderdecoderjson-formatterpassword-generator
ProfileTelegram
17 commands0 envUpdated 29d agoCreated Jul 20, 2026
Back to folder

commands/_time.js

javascript · 20 lines

Raw
1/**#command2name: /time3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12else if (message === "⏰ Unix Timestamp") {13  let nowTimestamp = Math.floor(Date.now() / 1000);14  let currentDate = new Date().toUTCString();15 16  Api.sendMessage({17    text: `⏰ *Current Unix Timestamp:*\n\n🔹 *Timestamp:* \`${nowTimestamp}\`\n🔹 *UTC Time:* \`${currentDate}\``,18    parse_mode: "Markdown"19  });20}