mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-12-24 11:15:50 +01:00
Support messageVoiceChatScheduled.
This commit is contained in:
parent
efaf601e85
commit
aa737b3dcf
@ -1400,6 +1400,20 @@ class Client::JsonProximityAlertTriggered : public Jsonable {
|
|||||||
const Client *client_;
|
const Client *client_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class Client::JsonVoiceChatScheduled : public Jsonable {
|
||||||
|
public:
|
||||||
|
explicit JsonVoiceChatScheduled(const td_api::messageVoiceChatScheduled *voice_chat_scheduled)
|
||||||
|
: voice_chat_scheduled_(voice_chat_scheduled) {
|
||||||
|
}
|
||||||
|
void store(JsonValueScope *scope) const {
|
||||||
|
auto object = scope->enter_object();
|
||||||
|
object("start_date", voice_chat_scheduled_->start_date_);
|
||||||
|
}
|
||||||
|
|
||||||
|
private:
|
||||||
|
const td_api::messageVoiceChatScheduled *voice_chat_scheduled_;
|
||||||
|
};
|
||||||
|
|
||||||
class Client::JsonVoiceChatStarted : public Jsonable {
|
class Client::JsonVoiceChatStarted : public Jsonable {
|
||||||
public:
|
public:
|
||||||
explicit JsonVoiceChatStarted(const td_api::messageVoiceChatStarted *voice_chat_started)
|
explicit JsonVoiceChatStarted(const td_api::messageVoiceChatStarted *voice_chat_started)
|
||||||
@ -1836,6 +1850,11 @@ void Client::JsonMessage::store(JsonValueScope *scope) const {
|
|||||||
object("proximity_alert_triggered", JsonProximityAlertTriggered(content, client_));
|
object("proximity_alert_triggered", JsonProximityAlertTriggered(content, client_));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case td_api::messageVoiceChatScheduled::ID: {
|
||||||
|
auto content = static_cast<const td_api::messageVoiceChatScheduled *>(message_->content.get());
|
||||||
|
object("voice_chat_scheduled", JsonVoiceChatScheduled(content));
|
||||||
|
break;
|
||||||
|
}
|
||||||
case td_api::messageVoiceChatStarted::ID: {
|
case td_api::messageVoiceChatStarted::ID: {
|
||||||
auto content = static_cast<const td_api::messageVoiceChatStarted *>(message_->content.get());
|
auto content = static_cast<const td_api::messageVoiceChatStarted *>(message_->content.get());
|
||||||
object("voice_chat_started", JsonVoiceChatStarted(content));
|
object("voice_chat_started", JsonVoiceChatStarted(content));
|
||||||
@ -8638,6 +8657,7 @@ bool Client::need_skip_update_message(int64 chat_id, const object_ptr<td_api::me
|
|||||||
case td_api::messageChatDeleteMember::ID:
|
case td_api::messageChatDeleteMember::ID:
|
||||||
case td_api::messagePinMessage::ID:
|
case td_api::messagePinMessage::ID:
|
||||||
case td_api::messageProximityAlertTriggered::ID:
|
case td_api::messageProximityAlertTriggered::ID:
|
||||||
|
case td_api::messageVoiceChatScheduled::ID:
|
||||||
case td_api::messageVoiceChatStarted::ID:
|
case td_api::messageVoiceChatStarted::ID:
|
||||||
case td_api::messageVoiceChatEnded::ID:
|
case td_api::messageVoiceChatEnded::ID:
|
||||||
case td_api::messageInviteVoiceChatParticipants::ID:
|
case td_api::messageInviteVoiceChatParticipants::ID:
|
||||||
|
@ -145,6 +145,7 @@ class Client : public WebhookActor::Callback {
|
|||||||
class JsonEncryptedCredentials;
|
class JsonEncryptedCredentials;
|
||||||
class JsonPassportData;
|
class JsonPassportData;
|
||||||
class JsonProximityAlertTriggered;
|
class JsonProximityAlertTriggered;
|
||||||
|
class JsonVoiceChatScheduled;
|
||||||
class JsonVoiceChatStarted;
|
class JsonVoiceChatStarted;
|
||||||
class JsonVoiceChatEnded;
|
class JsonVoiceChatEnded;
|
||||||
class JsonInviteVoiceChatParticipants;
|
class JsonInviteVoiceChatParticipants;
|
||||||
|
Loading…
Reference in New Issue
Block a user