This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Telegraf = require("telegraf"); | |
const bot = new Telegraf("TOKEN"); | |
bot.catch((err) => { | |
console.error('Ooops', err); | |
process.exit(1); // I choose exit, you should use PM (Process Manager) and let them automatically restart the bot | |
// Or sth else | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SCRIPT_REAL_DIR=$(dirname $(realpath "$0")) | |
echo ${SECRIPT_REAL_DIR} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Table } from "antd"; | |
... | |
<Table | |
... | |
scroll={{ x: "max-content" }} | |
/> | |
... |
OlderNewer