mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-12-18 08:37:47 +01:00
Remove unused field.
This commit is contained in:
parent
cfa7124e76
commit
937fa526b9
@ -1435,15 +1435,9 @@ class Client::JsonVoiceChatScheduled : public Jsonable {
|
|||||||
|
|
||||||
class Client::JsonVoiceChatStarted : public Jsonable {
|
class Client::JsonVoiceChatStarted : public Jsonable {
|
||||||
public:
|
public:
|
||||||
explicit JsonVoiceChatStarted(const td_api::messageVoiceChatStarted *voice_chat_started)
|
|
||||||
: voice_chat_started_(voice_chat_started) {
|
|
||||||
}
|
|
||||||
void store(JsonValueScope *scope) const {
|
void store(JsonValueScope *scope) const {
|
||||||
auto object = scope->enter_object();
|
auto object = scope->enter_object();
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
|
||||||
const td_api::messageVoiceChatStarted *voice_chat_started_;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class Client::JsonVoiceChatEnded : public Jsonable {
|
class Client::JsonVoiceChatEnded : public Jsonable {
|
||||||
@ -1874,11 +1868,9 @@ void Client::JsonMessage::store(JsonValueScope *scope) const {
|
|||||||
object("voice_chat_scheduled", JsonVoiceChatScheduled(content));
|
object("voice_chat_scheduled", JsonVoiceChatScheduled(content));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case td_api::messageVoiceChatStarted::ID: {
|
case td_api::messageVoiceChatStarted::ID:
|
||||||
auto content = static_cast<const td_api::messageVoiceChatStarted *>(message_->content.get());
|
object("voice_chat_started", JsonVoiceChatStarted());
|
||||||
object("voice_chat_started", JsonVoiceChatStarted(content));
|
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
case td_api::messageVoiceChatEnded::ID: {
|
case td_api::messageVoiceChatEnded::ID: {
|
||||||
auto content = static_cast<const td_api::messageVoiceChatEnded *>(message_->content.get());
|
auto content = static_cast<const td_api::messageVoiceChatEnded *>(message_->content.get());
|
||||||
object("voice_chat_ended", JsonVoiceChatEnded(content));
|
object("voice_chat_ended", JsonVoiceChatEnded(content));
|
||||||
|
Loading…
Reference in New Issue
Block a user