Giter Club home page Giter Club logo

Comments (5)

aivarasx987 avatar aivarasx987 commented on August 29, 2024

Never mind, found a workaround for my case.

from telemirror.

khoben avatar khoben commented on August 29, 2024

Can you share your solution?

from telemirror.

aivarasx987 avatar aivarasx987 commented on August 29, 2024

I don't really remember why I did it this way, but I don't forward straight to topic, I copy the message, download any media if message has it and then I send it as a user(I think I did this because of media problems).

You just send text like this:
await client.send_message(destination_chat, text, reply_to=topic_id)

from telemirror.

khoben avatar khoben commented on August 29, 2024

I don't really remember why I did it this way, but I don't forward straight to topic, I copy the message, download any media if message has it and then I send it as a user(I think I did this because of media problems).

You just send text like this:
await client.send_message(destination_chat, text, reply_to=topic_id)

Thanks for your reply. For such cases I'm going to make way to set parameters for .send_message/.edit_message through filters.
Most likely forwarding was prohibited and sending media via ID did not work, only downloading and re-uploading the media will help.

from telemirror.

aivarasx987 avatar aivarasx987 commented on August 29, 2024

I don't really remember why I did it this way, but I don't forward straight to topic, I copy the message, download any media if message has it and then I send it as a user(I think I did this because of media problems).
You just send text like this:
await client.send_message(destination_chat, text, reply_to=topic_id)

Thanks for your reply. For such cases I'm going to make way to set parameters for .send_message/.edit_message through filters. Most likely forwarding was prohibited and sending media via ID did not work, only downloading and re-uploading the media will help.

Yeah, forwarding messages to topic with media(photos, videos, mix of them) didn't work for me, because of that I went for user(telethon) copying and sending message approach.

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.