75 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
218
views
Telegraf bot stopped receiving messages, no errors
I have a bot that works like a tool for "accepting requests", and I have a web-interface for answering that requests. I noticed multiple time recently (at November 13th, and at December 2nd) ...
0
votes
1
answer
264
views
how to implement sending one message in a telegram bot on telegraf.js
Tell me why the newsletter does not work for my bot users?
All users are recorded in bd with their id
const { Telegraf, Markup, Scenes, session } = require('telegraf');
const bot = new Telegraf(...
0
votes
1
answer
210
views
How to Pass Arguments When Entering a Scene in Telegraf.js
const calendar = new Calendar(bot, {
date_format: "MMM D, YYYY HH:mm", // 24-hour format
language: "en",
start_week_day: 1,
bot_api: "telegraf",
...
1
vote
1
answer
618
views
Why bot.reaction() by Telegraf.js for Telegram Bot doesn't work?
Trying to develop a telegram bot with Telegraf.js when I try to listen message reactions the code doesn't work.
The code appears the same as Telegraf 4.16.0 Release Notes - Working with Reactions
My ...
0
votes
0
answers
169
views
Cannot read properties of undefined (reading 'enter')
please tell me why the scenes in telegraf.js stopped working for me. Yesterday everything worked fine, but today they seem to have been removed from the framework Telegraf.js
const nameScene = new ...
-1
votes
1
answer
4k
views
Telegram bots - how to find out user's contacts without username
I'm developing a telegram bot via Telegraf.js
One problem that I faced is - how to find out user contacts if the user doesn't have a username?
Project customer wants bot to use some identifier to ...
1
vote
0
answers
987
views
How get message text sent by my bot using message ID in telegraf-nodejs?
I've built a bot that send messages in a channel by nodejs using telegraf; I save the message ID returned by the 'sendmessage' function because I need to add addictional text to it after a while.
I've ...
0
votes
1
answer
900
views
Broadcast messaging service in Nest with Nestjs-Telegraf
I'm new to NestJs so it's probably problem with understanding dependency injection.
I have configured bot handler like this:
import { Module } from '@nestjs/common';
import { ConfigModule, ...
1
vote
0
answers
120
views
Telegram Telegraf Bot Markup.inlineKeyboard callbacks work in private message but not in group chat
Note: I am using stage and scenes for conversation flow, I've verified they are set up properly, I've also tried playing around with botfather settings (pretty much every possible option), gave the ...
0
votes
1
answer
640
views
How can I check if a user is in a Telegram group? I get a reply that he is out
I use the NodeJS Telegraf package to program my Telegram bot.
I'm trying to check if the user is in the channel using the following code:
const channelLeft = await ctx.telegram.getChatMember("@...
0
votes
1
answer
1k
views
Telegram Bot: detect when user read message
I am working on a telegram bot using telegraf JS.
My bot periodically sends messages to my users.
I would like to know when a user read a message my bot sent (on telegram app, there is small v on the ...
0
votes
1
answer
314
views
"ReferenceError: Markup is not defined" error in Node.Js Telegram Bot
I want to make my telegram bot automatically reply user message with Image with description.I also want to add url inline button that redirect user to specific website.
Code:
const { Telegraf, Extra } ...
2
votes
1
answer
2k
views
Telegraf BaseScene custom context with typescript implementation
I'm writing a telegram bot with Telegraf (v4.12.2) and typescript (v5.1.6) and trying to implement the stage. But for some reason can not set custom scene context with the fields i need. May be ...
2
votes
1
answer
1k
views
Step back in WizardScene telegraf
I am having trouble implementing the step system in my WizardScene. I've been trying for 2 days now.
System of operation:
The bot edits a post each time it receives the data it needs from a user.
...
1
vote
1
answer
371
views
How do I add parameters to nodejs telegraf.js commands?
I add parameters to my commands and try to get results according to those parameters, for example
/query -name mars
When I write this, I want it to be detected according to the name here, how do I do ...