Skip to content

Telegram Message Thread Id: symfony/telegram-notifier #61443

@MKC-MKC

Description

@MKC-MKC

Description

Hi. It is very strange that the package intended for sending notifications does not have the basic functionality – sending a message to a group topic thread.

see: https://core.telegram.org/bots/api#sendmessage
parameter: message_thread_id (int)
description: Unique identifier for the target message thread (topic) of the forum; for forum supergroups only

Example

$options = new TelegramOptions()
	->messageThreadId($_ENV["TG_THREAD_ID"]) // <== LIKE THIS
	->parseMode(TelegramOptions::PARSE_MODE_HTML);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions