error: no matching constructor for initialization of 'td::td_api::getChats'
In file included from /disk-samsung/freebsd-ports/net-im/tok/work/tok-2fbfe1eb86ab76b2abebd45555da61404f5da6b6/src/chatsort.cpp:9:
In file included from /disk-samsung/freebsd-ports/net-im/tok/work/tok-2fbfe1eb86ab76b2abebd45555da61404f5da6b6/src/chatsstore_p.h:7:
In file included from /disk-samsung/freebsd-ports/net-im/tok/work/tok-2fbfe1eb86ab76b2abebd45555da61404f5da6b6/src/chatsstore.h:7:
In file included from /disk-samsung/freebsd-ports/net-im/tok/work/tok-2fbfe1eb86ab76b2abebd45555da61404f5da6b6/src/client.h:11:
/usr/local/include/td/telegram/td_api.h:34:31: error: no matching constructor for initialization of 'td::td_api::getChats'
return object_ptr<Type>(new Type(std::forward<Args>(args)...));
^ ~~~~~~~~~~~~~~~~~~~~~~~~
/disk-samsung/freebsd-ports/net-im/tok/work/tok-2fbfe1eb86ab76b2abebd45555da61404f5da6b6/src/client.h:65:26: note: in instantiation of function template specialization 'td::td_api::make_object<td::td_api::getChats, td::tl::unique_ptr<td::td_api::ChatList>, long, int, int>' requested here
sendQuery(TDApi::make_object<Fn>(std::forward<Args>(args)...), [cb](TObject t) {
^
/disk-samsung/freebsd-ports/net-im/tok/work/tok-2fbfe1eb86ab76b2abebd45555da61404f5da6b6/src/chatsort.cpp:149:16: note: in instantiation of function template specialization 'Client::call<td::td_api::getChats, td::tl::unique_ptr<td::td_api::ChatList>, long, int, int>' requested here
_store->c->call<TDApi::getChats>(
^
/usr/local/include/td/telegram/td_api.h:19292:3: note: candidate constructor not viable: requires 2 arguments, but 4 were provided
getChats(object_ptr<ChatList> &&chat_list_, int32 limit_);
^
/usr/local/include/td/telegram/td_api.h:19285:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 4 were provided
class getChats final : public Function {
^
/usr/local/include/td/telegram/td_api.h:19285:7: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 4 were provided
/usr/local/include/td/telegram/td_api.h:19290:3: note: candidate constructor not viable: requires 0 arguments, but 4 were provided
getChats();
^
Version: 2fbfe1eb
Tdlib: rev. 7135caa (from 2021-09-02)
Compiler: clang-11
OS: FreeBSD 13
Edited by Yuri Zzz