Giter VIP home page Giter VIP logo

Comments (5)

mcm1957 avatar mcm1957 commented on August 11, 2024

https://forum.iobroker.net/topic/74411/telegram-adapter-sendet-nicht-in-subgruppen

from iobroker.telegram.

nhet avatar nhet commented on August 11, 2024

https://medium.com/@rezvovvad/send-notifications-to-a-specific-topic-in-the-telegram-chat-1f570b7ab929
Maybe it must be a change request.

from iobroker.telegram.

klein0r avatar klein0r commented on August 11, 2024

@nhet Looks like you have to specify the correct chat_id for the subgroup (with an underscore):

"chat_id": "-1001234567890_1234"

from iobroker.telegram.

nhet avatar nhet commented on August 11, 2024

In addition to the complete chat_id, it is also necessary to enter the message_thread_id. The message_thread_id only contains the value after the underscore of the chat_id.
The message_thread_id element is probably not yet in the current Telegram Bot implementation. Because I have already tried to specify the complete chat-id including the underscore value in the current version without actually sending messages to this topic.

from iobroker.telegram.

klein0r avatar klein0r commented on August 11, 2024

Please test version 3.7.0

Use state communicate.requestResponse to respond to the last chat id (and thread id). Or send a message directly to a thread in a supergroup:

Example:

## Thread ID
You can also set a thread id for super groups.
```javascript
sendTo('telegram.0', 'send', {
text: 'Message to chat',
chatId: 'SOME-CHAT-ID-123',
message_thread_id: 7,
});
```

from iobroker.telegram.

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.