am having difficulty calling a variable as part of the url in a message I intend to send via the Python Telegram bot. Due to the nature of my code, the ‘webpage’ variable varies and the url has to be called as a variable. Placing the `url’ variable in curly brackets did not work and some searching online has been
Automatically edit last Telegram bot message after expiration period
I’m trying to figure out how I can set an “expiration timer” on a message sent by a Telegram bot, containing a few buttons. Long story short, there’s a function which selects a random picture from a folder, then sends it to a group, and in a separate message it sends an InlineKeyboard object with some buttons for the picture
Is it possible with aiogram to know, who sent the message?
So the Telegram Bot can do different actions, depending on who activated the command. This concerns aiogram, a framework for Telegram Bot API Answer You could use a simple filtering system: Create a dict/database with user_id’s and their roles Get the role from that dict/db by id and do the action This solution in code:
Reply to a Python Telegram bot message
Please tell me how you can call the bot’s response to any message in the feedback bot. By example: User: /start Bot: Welcome message (Hello) User: any message Bot: Feedback message (Expect an answer) I tried to do it through the echo function, but most likely I made a mistake somewhere. I am attaching the code: main.py: settings.py: handlers.py: I
Discord.py bot ignoring channel.message.id
I have a bot that every 1 to 12 hours sends a random message into a specific channel (the channel that the command !random is used in). A certain handful of these message are yes/no questions, and I want to make it that the bot will respond if somebody says yes/no. The code works, the issue is I want the
What are ways to create a bot or script that detects monsters in a video game and click on it?
I’ve been trying to create a bot using python for an online mmo web game, and I am facing some issues. I’m using pyautogui, and basically, detects a certain RGB color of a pixel that the monster has and click on it, using the typical nested for loops. The issue here is that sometimes, the bot clicks on an environment
How do you send a private message in discord.py to command user?
Please reference to the image below: I know how to send a private message DM to user… But I want the bot to send a message in the CHANNEL instead, yet make the message content see-able only by the command user. How do you send a message that says: “only you can see this”. Also, can this be done with
Simple Discord bot not functioning as its supposed to be |Python
I have recently started coding with python and ended up coding a discord bot. This is the code i ran: I think this should make the bot say:Commands:!hello, !help, when a user writes !help but in the end nothing happens. Anyone got an idea how i can improve the code so it works?Id love to know Answer The event’s name
How can I make sue only I can use certain commands on my Discord bot? (Python)
So my Discord bot can now kick people from my server. But right now everyone can use the kick command. And I don’t want that. How can I fix this? This is the code so far: Thanks in advance! Answer I have done that before, this answer may help. First, import the necessary modules first I assume you already set
Clear reactions in setting time [nextcord.py]
I want clear or disable reactions in setting time using nextcord.py I making poll command and wanna delete or disable(I dont know can I or not) reactions in setting time I have code like this I have my time time_plus and wanna do something when time invoke Answer You can use reaction.clear or reaction.remove to remove reaction from your message.