yagop / node-telegram-bot-api

Telegram Bot API for NodeJS
MIT License
8.13k stars 1.49k forks source link

Applying style/formatting to message depending on user input #1105

Closed Txxxthless closed 10 months ago

Txxxthless commented 11 months ago

How can I send a message back to user with the given styling?

Example: user is sending a message, which is received with entities field:

entities: [ { offset: 3, length: 58, type: 'bold' }, { offset: 110, length: 375, type: 'italic' } ]

Is there a way to apply this styling to the message, sent from bot with sendMessage() or sendMediaGroup() methods?

VDS13 commented 11 months ago

@Txxxthless, https://core.telegram.org/api/entities