blob: 23450c1d97b51045ba17a09cea7cc9b0513d264a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
//
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2026
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#pragma once
#include "td/utils/common.h"
#include "td/utils/HashTableUtils.h"
#include "td/utils/StringBuilder.h"
namespace td {
// increase StoryContentUnsupported::CURRENT_VERSION each time a new Story content type is added
enum class StoryContentType : int32 { Photo, Video, Unsupported, LiveStream };
bool can_send_story_content(StoryContentType content_type);
bool can_edit_story_content(StoryContentType content_type);
StringBuilder &operator<<(StringBuilder &string_builder, StoryContentType content_type);
struct StoryContentTypeHash {
uint32 operator()(StoryContentType content_type) const {
return Hash<int32>()(static_cast<int32>(content_type));
}
};
} // namespace td
|