Giter VIP home page Giter VIP logo

tgcontent's Introduction

TgContenGraber

Simple grabb and send posts for channel to other channel in telegram

Скрипт для собирания и отправки постов из одних телеграмм каналов в другие с помощью python и telethon

Из возможностей:

1)несколько каналов доноров из которых будут браться посты и несколько каналов каналов в которые эти посты будут отправляться 🔁

2)Настройка времени с которого будут браться посты ⏲

3)задержка отпраки и настройка лимитов ⚙

4)Если скрипт превысил лимит,то уходит в сон на n кол-во секунд 💤

5)показ всех диалогов и их id в консоль 📃

⚙ Настройка:

заполнить

api_id =1284734

api_hash = 'ekwfjewif818fdj218d12jd'

timezone = pytz.timezone('Europe/Moscow') # часовой пояс

start_date = datetime(year=2023, month=4, day=14, hour=0, minute=0, second=0, tzinfo=timezone) #настройка времени с которого будут браться сообщения

delay-задержка в секундах

max_messages-максимальное кол-во сообщений

from_channels = [-1001976831202, -1001642191306]#каналы доноры

target_channels=[-1001604710589, -1001903515753]#отправка в эти каналы

💬 Закомментировать или раскомментировать необходмый вам режим отправки

client.send_message(entity,message)#без пометки

#client.forward_messages(entity, message)#с пометкой о пересылке

tgcontent's People

Contributors

escalibud avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.