Telegram Bots

41 readers
0 users here now

founded 1 year ago
MODERATORS
51
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/telegrambots by /u/befogfang on 2023-06-29 15:54:22+00:00.


Earning via generating N*des from AI bots,

I got to know about that on 15th may 2023 , its is trending.

AI bots were Used is Appropriate to tell here. Many teenagers and scammers targeted innocent girls and middle aged women as a Target .

Blackmailers starts blackmailing and demanding money in return they don't put pictures online or send to any of their relatives. That's how it was going.

One of my Friends, End up with the solution , And gather plenty of member in the telegram group. For the shake of Society They banned 47+ telegram bots ,which can turn a normal pic in intimating pic or N*de.

Telegram group : https://t.me/BOTBANNER

Join and help them in this initiative .

52
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/telegrambots by /u/weavisel on 2023-06-28 01:28:10+00:00.


I found out about a bot that organizes files you send to it (@filetobot) and it recommends using the app. Does anyone know if it's actually safe?

53
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/telegrambots by /u/Riwil on 2023-06-27 17:19:00+00:00.


Hello guys, I need help.

I need a code for a Python bot that does the following:

It should check within a Telegram group if there are 2 or more messages that contain a line saying (Original problem ID: x), where X will vary and will be an integer, not a fixed value.

If it detects that there is more than 1 message with that content and the same X value, it should delete the messages with the same number.

The bot should run approximately once every hour.

The bot is executed in Python 3 on Ubuntu.

I have this code already, but it doesn't work and gives me an error on line 52.

import time
from telegram import Bot, Update
from telegram.ext import Updater, CommandHandler

# Bot token
TOKEN = 'YOUR_TOKEN'

# Group ID
GROUP_ID = 'Group_ID'

# Dictionary to store messages with the same ID
messages = {}

# Function to handle the /start command
def start(update: Update, context) -> None:
    context.bot.send_message(
        chat_id=update.effective_chat.id,
        text='Hello! I am the duplicate message removal bot.'
    )

# Function to check and remove duplicate messages
def check_duplicates(context) -> None:
    global messages

    # Get messages from the group
    updates = context.bot.get_chat(GROUP_ID).get('updates')

    # Reset the messages dictionary on each execution
    messages = {}

    # Iterate over the messages
    for update in updates:
        message = update.get('message')
        text = message.get('text')

        # Check if the message contains the line "Original problem ID: x"
        if text and 'Original problem ID:' in text:
            # Extract the ID number
            id_number = int(text.split(':')[-1].strip())

            # Check if there are already messages with the same ID
            if id_number in messages:
                # If there are more than one message with the same ID, remove them
                if messages[id_number] != message['message_id']:
                    context.bot.delete_message(chat_id=GROUP_ID, message_id=message['message_id'])
            else:
                # Store the message ID
                messages[id_number] = message['message_id']

# Create the bot
bot = Bot(token=TOKEN)
updater = Updater(bot=bot)

# Add the handler for the /start command
updater.dispatcher.add_handler(CommandHandler('start', start))

# Get the update queue from the updater
update_queue = updater.update_queue

# Schedule the execution of the duplicate check every hour
updater.job_queue.run_repeating(check_duplicates, interval=3600, first=0)

# Start the bot
updater.start_polling()

# Keep the bot running until manually stopped
updater.idle()

If someone knows what I'm doing wrong, please let me know. Thank you.

54
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/telegrambots by /u/sharag123 on 2023-06-27 14:41:48+00:00.


Sorry for my bad English and thanks in advance!

As mentioned in the title , is there any bot which can auto "mark as read" message of certain groups that I find unimportant and instead of manually clicking on mark as read, the bot does the work? .

what i mean to say is once i put these groups in that bot, it should auto read them i need not manually click on mark as read

55
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/telegrambots by /u/the_aceix on 2023-06-26 20:32:19+00:00.


For a few days now I've not been getting timely notifications from the Gmail bot. Is it down? Are there any service degradation?

56
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/telegrambots by /u/User_098H5 on 2023-06-26 11:14:33+00:00.


Hello Fellas. I am a beginner. Inam trying to build a telegram bot that can send messages in a channel. I have made the bot and am trying to send the message using a python program, but am getting an error no matter the changes I make to my code. I am typing the code below, please help me if anyone can-

Import telegram Import asyncio

bot = telegram.bot(token='xxxxxxxxxxxxxxx') group_id= '$$$$$$'

async def send_message(message): await bot.send_message(chat_id= group_id,

text=message)

message_to_send= 'hello group members'

loop= asyncio.new_event_loop(loop)

loop.run_until_complete(send_message_to_group(message_to_send)

The error I am getting is- RuntimeError- Cannot run the event loop while another loop is running.

I have a little knowledge of api and am a beginner in programming. I have no experience with telegram bots but want to experiement with it as I have some plans in mind.

My main purpose is broadcasting information, My python program will do some calculations and the result will be broadcasted in the group by this bot.

I gave the context so that in case you gyus have any advise ,suggestions, resources or anything for me I'll very much appretiate it.

Please let me know how I can fox this code and whats wrong with this one.

57
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/telegrambots by /u/BoldBully on 2023-06-25 21:13:08+00:00.


Let's you talk to one of over 100 different models, characters or virtual people. From shakespear over chatgpt uncensored to princess twilight.

3 free tokens for joining

https://t.me/YourBestFriendAIBot

58
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/telegrambots by /u/Fluezyx on 2023-06-25 10:31:30+00:00.


Quick question does anyone know of an alternative to browserling sandbox?

59
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/telegrambots by /u/Interesting-Bag6199 on 2023-06-24 23:51:15+00:00.

Original Title: Hi

60
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/telegrambots by /u/Longjumping_Kiwi3984 on 2023-06-24 22:01:35+00:00.

61
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/telegrambots by /u/chernikovalexey on 2023-06-24 16:18:23+00:00.


This smarty uses world's best speech recognition software to transcribe any voice note coming its way to text and send back. It understands talking and mumbling in English, Spanish, German, Italian, Chinese, & 52 other languages.

Try it here.

Note on privacy: neither voice notes nor transcriptions are stored. They're gone from bot's memory as soon as you receive the text back.