implement dumb reposting
This commit is contained in:
parent
81b587cef8
commit
393df64bc8
@ -273,8 +273,10 @@ std::vector<AbstractPost> RepostManager::to_abstract_posts(std::vector<td::tl::u
|
||||
return result;
|
||||
}
|
||||
|
||||
// TODO timer
|
||||
void RepostManager::repost_all(std::vector<AbstractPost> posts) {
|
||||
for (auto &post : posts) {
|
||||
// TODO
|
||||
auto content = td_api::make_object<td_api::inputMessageText>(td_api::make_object<td_api::formattedText>(post.text + "\nDate: " + std::to_string(post.date), std::vector<td_api::object_ptr<td_api::textEntity>>()), nullptr, false);
|
||||
m_tg.send_query(td_api::make_object<td_api::sendMessage>(m_appConfig->tgDestinationId, 0, nullptr, nullptr, nullptr, std::move(content)), {});
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user