tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
6.94k stars 1.42k forks source link

Cannot copy long text message with markdown #1518

Closed comerc closed 3 years ago

comerc commented 3 years ago

example of origin message : https://t.me/Full_Time_Trading/40615

Снимок экрана от 2021-04-26 11-42-06

simple copy (via zelenin/go-tdlib):

message, err := tdlibClient.GetMessage(&client.GetMessageRequest{
    ChatId:    chatId,
    MessageId: messageId,
})
messageText := message.Content.(*client.MessageText)
tdlibClient.SendMessage(&client.SendMessageRequest{
    ChatId:              dscChatId,
    InputMessageContent: &client.InputMessageText{
        Text:                  messageText.Text,
        DisableWebPagePreview: messageText.WebPage == nil || messageText.WebPage.Url == "",
        ClearDraft:            true,
    },
})

Снимок экрана от 2021-04-26 11-43-01

no markdown below this line.

Original Markdown via GetMarkdownText():

🏆🚀 **НЕДЕЛЯ СУПЕР ОТЧЕТОВ

📅 ПОНЕДЕЛЬНИК
☀️ В премаркете
$ACI** **- Albertsons Companies - 14:30 (нет ожиданий)
$OTIS** **- Otis Worldwide Corporation - 13:15 (7.2%)💛
$BOH** **- Bank of Hawaii Corp. - 13:15 (-13.8%)❤️
$CBU** **- Community Bank System - 13:45 (-1.2%)💛
$DORM** **- Dorman Products Inc. - 14:00 (13.3%)💚
$LII** **- Lennox International, Inc. - 14:30 - (8.9%)💛

🌙** П**осле закрытия рынка 
$TSLA** **- Tesla, Inc. - 23:10 (71.1%)💚
$NXPI** **- NXP Semiconductors - 23:00 (26.7%)💚
$OMF** **- OneMain Holdings, Inc. - 23:30 (-21.9%)❤️
$CDNS** **- Cadence Design Systems - 23:05 (16.2%)💚
$BRO** **- Brown & Brown Inc. - 00:00 (8.2%)💛
$MKSI** **- MKS Instruments, Inc. - 23:30 (21.8%)💚

**📅 **ВТОРНИК
☀️ В премаркете
$UPS** **- United Parcel Service,  - 13:00 (13.5%) 💚
$GE** **- General Electric Co - 13:15 (-14.9%) ❤️
$MMM** **- 3M Company - 13:30 (4.9%) 💛
$HAS** **- Hasbro, Inc. - 13:55 (-15.6%) ❤️
$RTX** **- Raytheon Technologies - 13:30 (4.9%) 💛
$LLY** **- Eli Lilly & Co. - 13:20 (19.8%) 💚
$CROX** **- Crocs Inc. - 14:00 (47.3%) 💚
$WM** **- Waste Management - 14:10 (7.8%) 💛
$GLW** **- Corning Inc. - 14:20 (2.3%) 💛

**🌙 **После закрытия рынка 
$AMD** **- Advanced Micro Devices  - 23:10 (79.7%)💚
$MSFT** **- Microsoft Corp.  - 23:10 (17.2%)💚
$PINS** **- Pinterest, Inc.  - 23:05 (73.8%)💚
$GOOGL** **- Alphabet Inc.  - 23:30 (24.8%)💚
$SBUX** **- Starbucks Corp.  - 23:05 (13.1%)💚
$V - Visa Inc  - 23:05 (-5.2%)💛
$TXN** **- Texas Instruments, Inc. - 23:00 (19.9%)💚
$AMGN** **- Amgen, Inc.  - 23:00 (1.6%)💛
$ILMN** **- Illumina Inc.  - 23:05 (15.9%)💚

📅 СРЕДА
☀️ В премаркете
$DISCA** **- Discovery Communications - 14:00 (2.9%) 💛
$BA** **- Boeing Co. - 14:30 (-8.9%) 💛
$SPOT** **- Spotify Technology S.A. - 13:00 (26.6%) 💚
$WING** **- Wingstop Inc. - 14:00 (8%) 💛
$SIRI** **-Sirius XM Holdings Inc.. - 14:00 (3%) 💛
$YUM** **- Yum! Brands, Inc. - 14:00 (14.8%) 💚
$HUM** **- Humana, Inc.- 13:30 (8.4%) 💛
$ADP** **- Automatic Data Processing - 14:00 (0.8%) 💛

🌙** П**осле закрытия рынка 
$AAPL** **- Apple, Inc. - 23:30 (32.1%) 💚
$FB** **- Facebook Inc. - 23:05 (32.7%) 💚
$QCOM** **- QUALCOMM - 23:00 (46.1%) 💚
$F - Ford Motor Company. - 23:05 (-4.2%) 💛
$EBAY** **- eBay, Inc. - 23:05 (25.1%) 💚

📅 ЧЕТВЕРГ
☀️ В премаркете
$DPZ** **- Domino's Pizza, Inc. - 14:30 (12.7%) 💚
$OSTK** **- Overstock.com, Inc. - 15:00 (65.5%) 💚
$MCD** **- McDonalds Corp. - 14:00 (65.6%)** 💚
**$MA** **- Mastercard Inc - 15:00 (-0.5%**) 💛
**$CAT** **- Caterpillar, Inc. - 13:30 (4.3%) **💛
**$MRK** **- Merck & Co. Inc. - 13:45 (5.4%**)💛
**$MO** **- Altria Group Inc - 14:00 (-21.8%) ❤️
$CARR** **- Carrier Global - 13:30 (12.4%)** 💚
**$RDS.A -Royal Dutch Shell PLC - 15:55 (нет ожиданий)
$AIT** **- Applied Industrial- 13:30 (-2.6%)** 💚

**🌙** П**осле закрытия рынка 
$AMZN** **- Amazon.com, Inc.- 23:00 (38.4%)** 💚
**$TWTR** **- Twitter, Inc.- 23:05 (26.3%)** 💚
**$ZYXI** **- Zynex, Inc. - 23:00 (56.1%)** 💚
**$MSTR** **- MicroStrategy, Inc.- 23:00 (0%)** 💛
**$SWKS** **- Skyworks Solutions.- 23:00 (50.1%)** 💚
**$GILD** **- Gilead Sciences, Inc.- 23:00 (20.4%)** 💚
**$VRTX** **- Vertex Pharmaceutica- 23:00 (9.6%)** 💛
**$DXCM** **- DexCom Inc- 23:00 (19.5%)** 💚

**📅 ПЯТНИЦА
☀️ В премаркете
$XOM** **-Exxon Mobil Corp. - 14:30 (-3.1%)** 💛
**$ABBV** **- AbbVie Inc. - 14:40 (48.3%)** 💚
**$AZN** **-AstraZeneca PLC - 12:00 (12.4%)** 💚
**$CVX** **- Chevron Corporation - 14:30 (-3.6%)** 💛
**$CL** **- Colgate-Palmolive Co. - 13:55 (4%) 💛
$GT** **- Goodyear Tire & Rubberr - 14:55 (11.3%) 💚
$LHX** **- L3Harris Technologies - 13:30 (-1.2%) 💛
$LHTR** **- Charter Communication - 14:00 (6.4%) 💛
$WY** **- Weyerhaeuser Co. -  (44.7%) 💚

🌙** П**осле закрытия рынка 
**ОТЧЕТОВ НЕТ

💚 — Хорошие ожидания от отчета
💛 — Смешанные ожидания
❤️ — Плохие ожидания
% — ожидаемый рост выручки
🚀 отчеты будем мгновенно публиковать в телеграме[.
](https://pbs.twimg.com/media/Ezvv2DSWUAgc_pw?format=jpg&name=large)👍 ВСЕ компании торгуются в Тинькофф!
levlam commented 3 years ago

Thanks. Fixed in the latest TDLib version.