Skip to content

Some messages without line feed and disable page preview in Telegram Webhook #6682

@InExtremaRes

Description

@InExtremaRes
  • Gitea version (or commit ref): b9d1fb6
  • Operating system: Docker
    (rest is irrelevant)

Description

First of all thank you @techknowlogick for #4227. I found some issues and suggestion for the message.

As you can see here

image

when someone comments an issue the bot message doesn't have a new line before the content. Same with comments for a PR. I haven't tested every message to see if this happens elsewhere.

EDIT:
PR #6719 fixes the page preview of the messages (description below) but the line feed in some messages (description above) is still missing.


Also in Telegram, by default a message sent that includes a link will put a preview of the web, a little header and description. I think for the main purpose users want this feature (notifications of events) it is just noise. You can see what I mean here:

image

The method sendMessage in telegram bot API includes a parameter disable_web_page_preview that could be set to false. I think this should be false by default, maybe with an option to enable it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/enhancementAn improvement of existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions