MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / EditMessageRequestId

Function EditMessageRequestId

Telegram/SourceFiles/api/api_editing.cpp:93–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93[[nodiscard]] MsgId EditMessageRequestId(not_null<HistoryItem*> item) {
94 return item->isScheduled()
95 ? item->history()->session().scheduledMessages().lookupId(item)
96 : item->isBusinessShortcut()
97 ? item->history()->session().data().shortcutMessages().lookupId(item)
98 : item->id;
99}
100
101template <typename DoneCallback, typename FailCallback>
102mtpRequestId SuggestMessage(

Callers 2

EditMessageFunction · 0.85
EditRichMessageFunction · 0.85

Calls 6

isScheduledMethod · 0.80
isBusinessShortcutMethod · 0.80
lookupIdMethod · 0.45
sessionMethod · 0.45
historyMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected