
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
rubik-telegram
Advanced tools
Telegram's Bot API kubik for the Rubik
npm i rubik-telegram
yarn add rubik-telegram
const { App, Kubiks } = require('rubik-main');
const Telegram = require('rubik-telegram');
const path = require('path');
// create rubik app
const app = new App();
// config need for most modules
const config = new Kubiks.Config(path.join(__dirname, './config/'));
const telegram = new Telegram();
app.add([ config, telegram ]);
app.up().
then(() => console.info('App started')).
catch(err => console.error(err));
telegram.js
config in configs volume may contain the host and token.
If you do not specify a host, then https://api.telegram.org/
will be used by default.
If you don't specify a token, you will need to pass it.
...
const response = await app.get('telegram').sendMessage(message, token);
...
You may need the host option if for some reason Telegram host is not available from your server and you want to configure a proxy server.
For example:
config/telegram.js
module.exports = {
host: 'https://my.telegram.proxy.example.com/'
};
Telegram kubik doesn't has any extension.
FAQs
Telegram Bot Api kubik for the Rubik application system
The npm package rubik-telegram receives a total of 3 weekly downloads. As such, rubik-telegram popularity was classified as not popular.
We found that rubik-telegram demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.