Create a Telegram grabber
Create a Telegram grabber that performs the following functions:
Duplicate posting from open, closed channels to ours
Replace (username) in posts
Add buttons
Replace links in buttons
Replace links in posts
Forward premium emojis in posts
-
4383 32 0 Good day, Oleksandr.
I have carefully reviewed your task and I already have a ready solution with a web admin panel.
What has been implemented:
- Parsing from private|public chats
- Auto-posting of news
- Changing links
There are a few nuances:
… - Buttons to the text can only be added by bots,
- Premium emojis can only be used with a premium Telegram account
I am in the top 10 freelancers in the bot development category.
https://freelancehunt.com/freelancers/programuvannya/rozrobka-botiv#freelancer-olexandr_glasov
I will be happy to collaborate!
Best regards, Oleksandr.
-
8193 63 1 Good day!
I am ready to help you with the implementation of the project. I am looking forward to clarifying the details and starting work on it!
-
3853 24 0 Good day,
I am ready to take on your project to create a Telegram grabber. I have experience in developing bots and task automation. I can duplicate posting, replace (username), add buttons, replace links, and forward premium emojis.
My rate is $16 per hour. To start working, I need more detailed information about the requirements and scope of the project.
Sincerely,
Maxim
-
1165 11 1 Good day, I have experience in developing software for Telegram, write
-
1. Встановлення необхідних бібліотек
Спочатку встановіть бібліотеку
Telethon:bash
pip install telethon2. Імпорт необхідних модулів
python
from telethon import TelegramClient, events, Button from telethon.tl.functions.messages import ImportChatInviteRequest from telethon.tl.types import InputPeerChannel import re3. Налаштування клієнта
Вам потрібно зареєструвати свій додаток на my.telegram.org і отримати API ID та API Hash.
python
api_id = 'YOUR_API_ID' api_hash = 'YOUR_API_HASH' phone = 'YOUR_PHONE_NUMBER' client = TelegramClient('session_name', api_id, api_hash)4. Функція для дублювання постів
Створіть функцію, яка обробляє повідомлення і дублює їх на ваш канал:
python
async def duplicate_post(event): sender = await event.get_sender() username = sender.username # Замінити ім'я користувача в постах message_text = event.raw_text.replace(username, 'new_username') # Замінити посилання в постах message_text = re.sub(r'http[s]?://\S+', 'new_link', message_text) # Додати кнопки buttons = [ [Button.url('New Button 1', 'https://example.com'), Button.url('New Button 2', 'https://example.com')] ] # Пересилання преміум емоджі if event.message.stickers: stickers = event.message.stickers else: stickers = [] # Відправити пост на ваш канал await client.send_message('your_channel_username', message_text, buttons=buttons, file=stickers) # Додати обробник подій для отримання повідомлень з цільових каналів @client.on(events.NewMessage(chats=('source_channel_username'))) async def handler(event): await duplicate_post(event) # Підключитися і почати обробку повідомлень client.start(phone) client.run_until_disconnected()5. Додавання до закритих каналів
Для отримання доступу до закритих каналів, вам потрібно буде використовувати
ImportChatInviteRequest.python
async def join_private_channel(link): try: await client(ImportChatInviteRequest(link.split('/')[-1])) except Exception as e: print(f'Failed to join the channel: {e}') # Приклад виклику функції client.loop.run_until_complete(join_private_channel('https://t.me/joinchat/XXXXXX'))6. Запуск клієнта
Запустіть ваш клієнт, щоб він почав обробку повідомлень:
python
if __name__ == '__main__': client.start(phone) client.run_until_disconnected() -
Current freelance projects in the category Bot Development
Long-term collaboration with an AI / No-Code developer for premium Enterprise projects.
935 USD
Hello! Our international AI agency "Neural Sharks" provides high-level autonomous digital infrastructure for large corporate businesses in Scandinavia (Norway). We specialize in deploying ultra-fast voice AI agents, deep financial analytics systems (Data Sharks), and AI design… AI & Machine Learning, Bot Development ∙ 2 hours 7 minutes back ∙ 5 proposals |
Telegram bot for automatic interviewing of veterinarians with OpenAI integration
22 USD
Goal: to maximize the automation of the initial selection of candidates without the involvement of the employer. 1. The candidate follows the link to the Telegram bot and starts the interview with the command /start. 2. The bot sequentially asks 18 pre-set questions. 3. Answers… AI & Machine Learning, Bot Development ∙ 5 hours 51 minutes back ∙ 54 proposals |
Development of a Telegram botCreation of a Telegram bot with a funnel for viewing free materials and then the possibility of purchasing the main course for listening to audio tracks Without the possibility of sharing or downloading audio tracks A detailed architecture is attached in the file.… Bot Development ∙ 9 hours 5 minutes back ∙ 54 proposals |
Automation setup: Form on the website → WhatsApp bot → CRM (Make + WATI)Project Description: There is a transportation company website. Clients submit requests through a form on the site — the form is sent to email. We need to set up the following automation:Stage 1 — Form → WhatsApp — When a new request comes to the email from the website, the… Web Programming, Bot Development ∙ 2 days 2 hours back ∙ 48 proposals |
Telegram chatbot for a closed club
22 USD
Good day! I need to set up a bot for Telegram. Task: selling access to a closed channel. The bot should accept payments and after successful payment, issue a one-time invitation link. It is also necessary to set up automatic removal of a participant from the channel when their… Bot Development ∙ 4 days 13 hours back ∙ 96 proposals |