Giter Club home page Giter Club logo

Comments (3)

khoben avatar khoben commented on August 29, 2024

Я так понимаю речь идёт о каналах с запретом на сохранение и пересылку?
Тогда необходимо реализовать специальный обработчик событий на этот случай https://github.com/khoben/telemirror/blob/master/telemirror/messagefilters/restrictsavingfilter.py (примерная реализация указана в аннотации к классу).
Добавить импорт в https://github.com/khoben/telemirror/blob/master/telemirror/messagefilters/__init__.py и в файле mirror.config.yml для канала приемника указать этот фильтр.

from telemirror.

ilyadzhan avatar ilyadzhan commented on August 29, 2024

Все равно выводится warning:

Mirror mapping:
-1001809912690 -> 1001539138995
Mirror targets config: {1001539138995: TargetConfig(disable_delete=False, disable_edit=False, filters=EmptyMessageFilter), -1001809912690: TargetConfig(disable_delete=False, disable_edit=False, filters=RestrictSavingContentBypassFilter)}
Using database: InMemoryDatabase

INFO 2023-02-20 18:37:36,955 [mirroring.py:37]:telemirror: [New message]: https://t.me/c/1809912690/62
WARNING 2023-02-20 18:37:36,955 [mirroring.py:52]:telemirror: Forwards from channel#-1001809912690 with restricted saving content enabled to channel#1001539138995 are not supported.

from telemirror.

khoben avatar khoben commented on August 29, 2024

Фильтры нужно указывать для каналов, в которые идет пересылка:

directions:
  - from: [-1001809912690]
    to: [-1001539138995]

targets:
  - id: -1001539138995
    filters:
      - RestrictSavingContentBypassFilter

from telemirror.

Related Issues (20)

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.