Answer the question
In order to leave comments, you need to log in
VBA EXCEL - How to make text bold and italic in Telegram Bot?
textfromExcel = Range("A5116").Value 'в ячейке A5116 текст такой "Все номера загружены" - слово "номера" должно быть выделено полужирным
MessageID_Channel = "chat_id=-10013*********"
strPostData = MessageID_Channel & "&text=" & textfromExcel
With objRequest
.Open "POST", "https://api.telegram.org/bot13**********:AA*******_tW****************/sendMessage?", False
.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
.send (strPostData)
GetSessionId = .responseText
End With
Answer the question
In order to leave comments, you need to log in
There is such a thing as formatting. Just putting symbols is not enough.
https://core.telegram.org/bots/api#sendmessage
There is a parse_mode item, it must be specified when formatting with the tag, as in html
Added to answers so that it does not appear in the list of questions, without an answer.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question