Banana Basic Types

Basic types are the types that make up all the structures used in Telegram API including method arguments and their return values.

File

#include <banana/utils/basic_types.hpp>

using banana::boolean_t = bool

Boolean type (true or false).

using banana::float_t = double

Floating point type.

using banana::integer_t = std::int64_t

Signed 64-bit integer type.

using banana::string_t = std::string

Utf-8 string.

template<class T>
using banana::optional_t<T> = banana::dynamic_optional<T>

Type representing a value that may not exist.

template<class T>
using banana::array_t<T> = std::vector<T>

Type representing dynamically-sized array.

template<class ...Ts>
using banana::variant_t<Ts...> = std::variant<Ts...>

Type representing the value of one of several possible types.