Questions tagged [telegraf]

Telegraf is a versatile and customizable agent designed for gathering and reporting metrics. Developed in Go without any external dependencies, it offers a plugin-driven system for seamless integration. For inquiries regarding the Node.js Telegram bot framework, please use the `telegram.js` tag instead.

What is the method for accessing an anonymous function within a JavaScript Object?

Currently facing an issue with a Node.js package called Telegraf, which is a bot framework. The problem arises when trying to create typings for it in TypeScript. The package exports the following: module.exports = Object.assign(Telegraf, { Composer, ...

Ways to transmit a message on Telegraf without revealing the sender's identity

Currently, I am working on a broadcast feature in Telegram using the Telegraf framework. I am looking to send messages from one user to all users, and while I can achieve this with .forwardMessage(chatId), I also want to include buttons in the message with ...

Collaborating on a single instance across several processes

I have a messaging bot in my project, where the connection is established using a class instance. class MessagingBot { public bot; constructor() { this.bot = new TelegramBot(); } } export default MessagingBot; In another file, I create an inst ...