Add td_api::chatEventSlowModeDelayChanged.

GitOrigin-RevId: ac41d0d684b422ed964c6d35af160992b988b2ce
This commit is contained in:
levlam 2019-11-10 17:26:03 +03:00
parent 56eb8e0f9a
commit ad051b5522
3 changed files with 9 additions and 0 deletions

View File

@ -1956,6 +1956,9 @@ chatEventInvitesToggled can_invite_users:Bool = ChatEventAction;
//@description The linked_chat_id of a supergroup was changed @old_linked_chat_id Previous supergroup linked chat identifier @new_linked_chat_id New supergroup linked chat identifier
chatEventLinkedChatChanged old_linked_chat_id:int53 new_linked_chat_id:int53 = ChatEventAction;
//@description The slow_mode_delay of a supergroup was changed @old_slow_mode_delay Previous value of slow_mode_delay @new_slow_mode_delay New value of slow_mode_delay
chatEventSlowModeDelayChanged old_slow_mode_delay:int32 new_slow_mode_delay:int32 = ChatEventAction;
//@description The sign_messages setting of a channel was toggled @sign_messages New value of sign_messages
chatEventSignMessagesToggled sign_messages:Bool = ChatEventAction;

Binary file not shown.

View File

@ -23901,6 +23901,12 @@ tl_object_ptr<td_api::ChatEventAction> MessagesManager::get_chat_event_action_ob
return make_tl_object<td_api::chatEventLocationChanged>(old_location.get_chat_location_object(),
new_location.get_chat_location_object());
}
case telegram_api::channelAdminLogEventActionToggleSlowMode::ID: {
auto action = move_tl_object_as<telegram_api::channelAdminLogEventActionToggleSlowMode>(action_ptr);
auto old_slow_mode_delay = clamp(action->prev_value_, 0, 86400 * 366);
auto new_slow_mode_delay = clamp(action->new_value_, 0, 86400 * 366);
return make_tl_object<td_api::chatEventSlowModeDelayChanged>(old_slow_mode_delay, new_slow_mode_delay);
}
default:
UNREACHABLE();
return nullptr;