Category "telegram-bot"

I want to make separated file for telegram bot every commands in python

pytelegrambotapii am making a telegram bot and i want to make every command in separated files i tried to do with this code from run_start import * @bot.message

Telegram bot. Private messages to group members

There is a public telegram chat. I want to make it so that when a user joins a chat group, the bot will send that user a private message. I checked the technica

ModuleNotFoundError: No module named 'telebot' on heroku

This is the official document https://github.com/python-telegram-bot/python-telegram-bot. How do I using pip install python-telegram-bot --upgrade on heroku. Th

Return does not return information

When wanting to return a value with the return and wanting to use it later in a variable, nothing is returned to me. #Actualizacion de informacion def messageHa

It doesn't pick up the variable correctly in subprocess.call (python)

I am creating a telegram bot to send the information that I request to the app. When I run the code below it works fine except for the last part, when it does t

How can I add values to the telegram bot keyboard only if this value exists in the database?

My database periodically changes the number of values. I want the values to be displayed in the telegram bot's keyboard only if they exist. How can this be done

Python Telegram Bot: How to measure interaction time/response time of user?

how can I measure the time the user uses to interact with the bot? E.g. The bot sends a message. We want to measure the time from the reception of the message t

The connection between my arduino board and my telegram channel is not working

Im trying to connect a ldr sensor to telegram bot, so that i know if the lights are tripping or not, but it seems like the tripped messages aren't going through

nodeJS - How to run cron job to send telegram bot messages

I have this code in my telegram bot: const fs = require('fs/promises'); const keyFile = 'luminous-re1c7.json' const { Storage } = require('@google-cloud/storage

Apps Script Searches for specific cell in spreadsheet

i made a bot for telegram using Apps script i have a spreadsheet which has a database... 3 columns 500 rows ID , Username, Full Name i want to make a command fo

Add member to telegram channel

I have been looking for a way to add a number of users to a telegram channel (with users id) for a long time and I didn't find anything. (I'm sure there is such

How do I avoid using global variables when writing a Telegram bot

I'm writing a Telegram bot on Python using the python-telegram-bot library. The bot's function is to look up POIs around a given location. I have a Conversation

Why Telegram Message object has steacker field instead photos

When I send a file to the bot, I get a message object with a staker field, on webhook Then i try to get file path by getFile method. And i get the same file pa

Trying to handle an error but cannot do it! Telegram

I have made a telegram bot using pyrogram to upload a large video and the the progress bar is shown, however the progress bar is repeatedly edited message with

How to validate data received via the Telegram's Web App

I'm trying to validate WebApp data but the result is not what I wanted. Telegram documentation: data_check_string = ... secret_key = HMAC_SHA256(<bot_token&g

Telegram bot - How can I create a popup message?

Thanks for reaching this feed. I would like to request the method/example/API doc for the popup "Spin Wheel" (see below image) in the Telegram doc. I have tried

Korean character showed by telegram bot sms

I’m trying to send sms via telegram what clawed from Korean website. But Korean characters was not display as i need. Please help me to show Korean charac

Can't parse entities: unexpected end tag at byte offset 0

i dont known, pls help async def getcatalog(message: types.message): if catalog.find_one({"type": 0}) is None: await message.answer('К с

How to send a photo with .webp extension via telegram bot

When I try to send such a photo, I get an error: example: bot.send_photo(message.chat.id, photo=test.webp) but i use links (hope it doesn't affect) ERROR - Tele

Telegram Web Bots data validation in JavaScript

I've tried to do user verification script for telegram web app for bots. I have no idea how to fix it. import sha256 from 'js-sha256' const telegram = window.T