Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
0 answers
15 views

How to make your bot function differently in dms? [closed]

So basically, i made a bot for my group which is pretty big, yet some people spam in the dms of the bot and overload it. Anyway to make it so the bot doesnt respond to anything in dms? Tried ...
Loki's user avatar
  • 1
0 votes
1 answer
21 views

How to get a list of chat names that a Telegram bot is a member of using Telegram Bot API?

I am developing a Telegram bot using Node.js and axios to interact with the Telegram Bot API. I need to get a list of all chat names that the bot is a member of. I am able to fetch updates and chat ...
varshavskiy_png's user avatar
0 votes
0 answers
18 views

Telegram Bot API: Sending thumbnail for audio

According to Telegram documentation: Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 ...
AdisAlagic's user avatar
0 votes
0 answers
29 views

Why aren't camera access rights saved? [Telegram Mini Apps]

I am writing a small app and I need to access the camera. In the desktop version, the user's choice is remembered, but not in the mobile version. Every time the app is opened, access is requested, ...
Rox's user avatar
  • 19
-1 votes
0 answers
30 views

How To Get Actual URL Of A Telegram Mini App

It's known knowledge that telegram mini apps are just simple sites being accessed via bots. So my question is, how do i get the actual url to the site displayed when a mini app is opened? The answer ...
Knight's user avatar
  • 1
0 votes
1 answer
20 views

Can I trust the callback query from Telegram? Should I validate the query?

In a traditional Web application, the backend service should never trust the payload sent from the user frontend. Though the frontend pages use carefully designed UI to force users to send data in a ...
Yan's user avatar
  • 391
-1 votes
0 answers
31 views

how can i implement tag all? | telegram bot

i can't tag other chat users(except administrators) and i just couldn't do it. i decided to leave a function for tag admins. for (let i = 0; i < userCount; i++) { const member = await ctx....
New Account's user avatar
-1 votes
0 answers
23 views

send image to google drive from bot telegram using google script

I want code (GOOGLE SCRIPT) to send image from bot telegram to google drive and then bot send it to user by special command I set webhook and connected the bot to Google Sheet, and it worked correctly....
Gan 2021's user avatar
-3 votes
1 answer
37 views

tel protocol not supported in Telegram WebApp

I am trying to use a tel protocol in my Telegram WebApp, but getting an error [Telegram.WebApp] Url protocol is not supported tel:+1234567. I know it means that the web view of Telegram is not ...
aki's user avatar
  • 13
0 votes
1 answer
46 views

Telegram Bot ConversationHandler Skips Waiting for User Input and Gives AttributeError 'NoneType' object has no attribute 'reply_text'

I'm building a Telegram bot that interacts with users to edit and upload videos using the python-telegram-bot library. The bot retrieves videos from Reddit, edits them using moviepy, and then asks the ...
Nicolas Hoechli's user avatar
1 vote
0 answers
23 views

Delete messages in a telegram bot

I'm writing a telegram bot to delete spam from a channel where the bot is administrator (with permission to delete messages) I'm doing some tests using PHP and telegram-bot-sdk 2.0 I'm able to answer ...
Fabrizio Farenga's user avatar
0 votes
1 answer
17 views

Telegram bot with postgresql and asyncpg. Error during DB query execution: 'NoneType' object has no attribute 'send

I have telegram bot and database on postgresql. Database There is a pic of it. My database works properly and if i need to add something in it or smth, it works. I need functions that can add ...
BadNewsForYou's user avatar
-2 votes
0 answers
28 views

Interact with a telegram bots buttons using telethon?

this is one of my first times asking questions here so be nice plz. ok so I have previously used the telethon library alot. I use it to read messages ususally and then do some sort of automation like ...
Haseeb Syed's user avatar
0 votes
0 answers
14 views

added bot_token by mistake when creating client on pyrogram

I'm creating my first project on pyrogram and, by mistake, after the usual... api_id = api_id api_hash = "hash_id" async def main(): async with Client("my_account", api_id, ...
Billie's user avatar
  • 1
-2 votes
0 answers
26 views

ImportError: cannot import name 'config' from 'decouple' in Python

I can't seem to import config from decouple. I tried doing the pip uninstall decouple and installing by "pip install python-decouple". Please see image attached. code error when trying to ...
Jesvic Naag's user avatar
0 votes
0 answers
94 views

Issue Connecting to Telegram Wallet using tonconnect/ui-react Library in React Mini-App

I’m developing a React mini-app and using the tonconnect/ui-react library to add a “Connect to Wallet” feature. The connection works perfectly with most wallets like Tonkeeper and others. However, ...
isofttechn's user avatar
-1 votes
1 answer
37 views

Slow mode wait time - how to get it?

I have the following problem. I have some code which uses pyrogram to periodically send a message into a few telegram supergroups that I moderate. Some of these groups have slow mode enabled. Some ...
Unthought's user avatar
0 votes
1 answer
35 views

TelegramBotAPI meaning of “attach://<file_attach_name>”

I need clarification for the TelegramBotAPI section about sending files : https://core.telegram.org/bots/api#inputmediaphoto More specifically, I'm trying to use python and requests to perform a ...
Hugo's user avatar
  • 1,284
0 votes
0 answers
43 views

I need help on my if logic for Stock Price Alert

I am working on creating a stock price alert system using a Telegram bot and Node.js. The stock price data is gathered from YFinance, and when a target price (TP) is reached, the bot updates the ...
RAHMAT RAHMAT's user avatar
0 votes
1 answer
59 views

How to remove bottom gap in telegram mini app

I’m developing telegram mini app via Taiga UI and I think that I lost something with viewport configuration etc. Please help me fix problem with gap in the bottom, while I’m using telegram mini app on ...
Alexander Mashin's user avatar
3 votes
1 answer
104 views

Unable to Download Multiple Images from Telegram Media Group Using Async Function

This question is a follow up from this question asked earlier here I need help in trying to modify this code section which I am currently using to download just 1 image. async def handle_s_command(...
Slartibartfast's user avatar
-1 votes
1 answer
26 views

How to share a chat bot with other users that can see the bot updates

Im using Thingsboard to send alarms to a telegram bot. I have created the bot, with its name and username, I have the TOKEN, and I have the chat id to send updates to the bot. Now I, as a telegram ...
Edu Gimeno's user avatar
0 votes
1 answer
63 views

Telegram bot api click on message containing button

I have a private chat in telegram and there I have two bots One of the bots is mine and other is not mine and it can send messages with buttons. Is it possible for my bot to click on this button?(for ...
user2950593's user avatar
  • 9,519
0 votes
0 answers
22 views

does not see the aoigram library in VS Cod, what should I do?

I wrote the telegram bot code. When running the main file, it throws an error: from aiogram import Bot, Dispatcher ModuleNotFoundError: No module named 'aiogram' I use VS Code, installed aiogram and ...
KALEBALKA's user avatar
0 votes
0 answers
20 views

Why can't I download media from Telegram API (GramJS) passing only the mandatory attributes?

I am using GramJS, it works fine when I pass the whole media object to downloadMedia, where I guess GramJS itself picks the necessary values and formats the actual query to Telegram's API. But if I ...
Charlie Pug's user avatar
0 votes
0 answers
31 views

Messages from group telegrams are not deleted

There is one Telegram group and for some reason ReplyKeyboard appeared there. I tried to remove it using ReplyKeyboardRemove, but this action removed the keyboard only for some group members, many of ...
archdrdr's user avatar
0 votes
0 answers
28 views

Python-telegram-bot not registering button press

my bot is not registering inline button presses. What should I do? async def button(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: """Parses the CallbackQuery and ...
Grigory Turlykin's user avatar
1 vote
1 answer
69 views

Telegram Bot: How to Download Multiple Photos from the Same media_group_id in a Single Update?

This question is a followup from the following question asked in a previous post. This is my code block to download all photos from a telegram bot within the same media_group_id context. async def ...
Slartibartfast's user avatar
2 votes
1 answer
95 views

Getting multiple images to download from telegram bot

I have this code file_name = f'photo_{update.message.message_id}_{photo.file_unique_id}.jpg' full_download_url = f"https://api.telegram.org/file/bot{BOT_TOKEN}/{download_url}" logger.info(f'...
Slartibartfast's user avatar
0 votes
0 answers
28 views

ESP32 Telegram Stops sending messages after the two message in CTBot header file

I am now creating a ESP32 based NTP clock with facility of message display to the MAX7219 led matrix whenever a person send message through the BOT that I have Created... Every thing works fine. But ...
ChandraSekhar 's user avatar
-1 votes
2 answers
21 views

How I can create Suggested button in library telebot

I want create like this button. HOW? @bot.message_handler(commands=["start", "help"]) I wrote the suggested words but they did not appear to the user like the attached image. What ...
Mahmod Tg's user avatar
0 votes
0 answers
25 views

Pyrogram connection timed out

I'm currently trying to launch a pyrogram user bot inside of corporate infrastructure, and my connection is getting timed out. On my computer, everything works fine; we have access to the Telegram API ...
vlad egorov's user avatar
0 votes
1 answer
51 views

Telegram BOT command in GoogleAppScript not triggerred

I have a problem with my code where the command is not triggerred properly. Here's my code. function handleInitialCommands(receivedTextMessage, chatId, messageId) { if (receivedTextMessage....
23March's user avatar
0 votes
2 answers
36 views

Telegraf show reply message and copy to clipboard

I'm creating a bot in Telegram using Telegraf npm pkg and I need to achieve two things: A message waiting for a response for the user. Using ctx.reply( won't achieve this After clicking in something ...
correctmeifimwrong's user avatar
0 votes
1 answer
23 views

pythonanywhere server shutdown automatically

What should I do to keep my bot running all the time? I've created a telegram bot and host it on "python anywhere" (free plan). When I run it in the morning everything is ok, but when I want ...
Lord.Aslan's user avatar
1 vote
1 answer
590 views

Running Telegram Mini app (web app) on localhost

I a building an application that is to function as a webapp and also as a telegram Miniapp. Telegram miniapp has certain special functionalities or features like the initData ,ie the window.Telegram....
Abhith's user avatar
  • 489
0 votes
1 answer
39 views

How to Prevent Unwanted Scrolling and Collapses in Telegram Mini Apps on Touchscreen Devices?

I'm developing a Telegram Mini App using Vite+React, and users are reporting unexpected scrolling and collapses when interacting with the app on touchscreen devices. These issues often occur when ...
someone's user avatar
0 votes
2 answers
41 views

sendPaidMedia - Not Found: method not found on local Telegram Bot server

I have been running the telegram bot server locally for some few months now and everything works fine. Just wanted to add the newly introduced sendPaidMedia to mycode but kept getting the error {"...
MOHW's user avatar
  • 797
-1 votes
0 answers
13 views

Error processing channel : 'TeleBot' object has no attribute 'get_chat_history'

I'm working on a bot using the Telebot library that can access channel chats. However, I'm encountering an error that says Telebot has no such attribute. I'm unsure why this is happening. I’ve ...
Bharath S's user avatar
0 votes
0 answers
25 views

Telegram API rejects message 0 H

I'm trying to send this Telegram API message via POST: POST /MY_BOT:MY_TOKEN/sendMessage?chat_id=MY_CHAT_ID&text=<code>0 H</code>&parse_mode=HTML but I keep getting a 400 bad ...
intrigued_66's user avatar
0 votes
1 answer
45 views

No error messages in console when using flask with telegram bot api

I am trying to develop simple telegram bot. When just started, I used polling to test the bot. import telebot bot = telebot.TeleBot(token) # decorator indicates that on_text() should be called when ...
heavennborn's user avatar
0 votes
0 answers
37 views

How to convert video to video note telegram bot (Aiogram 3.11)?

How to make a telegram circle from a user-sent video and send it back to the chat? @router.message(Command("Get_circle")) async def cmd_circle(message: Message): await message....
Игорь А's user avatar
0 votes
1 answer
36 views

Is there any way to create a telegram bot with Telebot library that can drop reactions into messages users send?

Is there any way to create a Telegram Bot with Telebot library that can drop reactions into messages users send? For example the following image: I have tried many times but it seems impossible. I ...
Hiệp Trần's user avatar
0 votes
0 answers
91 views

this bot can't be added to the attachment menu

I have created a Telegram bot and activated its program. Now, according to Telegram's description, I have prepared a startapp for it, but it does not open on mobile, while it runs well on Windows ...
Ghysar's user avatar
  • 1
0 votes
0 answers
29 views

How to attach the chat_id (id from telegram) to the API request parameter

i'm new to Telegram and I got some trouble in handling the program workflow. I have created an API and publish it and this is the URL of the API, also the URL that that Telegram app will use: https://...
Từ Hạo Thiên's user avatar
0 votes
1 answer
36 views

Telegram Show Popup message box use telegram api and telebot in python

how to show popup message box in telegram, use telebot python library like below picture: enter image description here Or give me a keyword related to this message box so that I can search about it ...
Alex's user avatar
  • 3
0 votes
0 answers
34 views

replyKeyboardMarkup doesn't work in supergroup

I tried to show keyboard in supergroup ('supergroup' is a group with topics). I use a request like this https://api.telegram.org/bot<TOKEN>/sendMessage?chat_id=CHAT_ID&message_thread_id=ID&...
Roman's user avatar
  • 11
0 votes
0 answers
68 views

telebot.Bot.send_message Error code: 400. Description: Bad Request: SEND_AS_PEER_INVALID

My program does sends messages to Telegram using pytelegrambotapi constantly, usually 2-4 times a minute, to the same group. It worked for a couple dozens of hours but then the usual call of the ...
Deep Drop's user avatar
0 votes
0 answers
12 views

How can I download more than 3 photos that come in the same message?

I have tried to download 4 photos of the same message but I can't get it, here is the code I tried This downloads only 1 image if (message.media) { const link = await handleMedia(...
Cristhian Palacios's user avatar
0 votes
0 answers
54 views

Telegram bot constantly shows "Getting updates..." and does not start the game

I'm developing a Telegram bot that successfully responds to commands and sends messages, but it fails to open the game upon pressing the start button. Instead, the bot remains stuck at "Getting ...
Daniella Dimitrievna's user avatar

1
2 3 4 5
104