src/vkraken/core/objects

Search:
Group by:

Types

Attachment = object
  case
  of atPhoto:
      photo*: Photo

  
AttachmentType {.pure.} = enum
  atPhoto = "photo"
BanInfo = object
  end_date*: int
  comment*: string
ButtonColor {.pure.} = enum
  Primary = "primary", Secondary = "secondary", Negative = "negative",
  Positive = "positive"
CanWrite = object
  allowed*: bool             ## true, Ссли ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»ΡŒ ΠΌΠΎΠΆΠ΅Ρ‚ ΠΏΠΈΡΠ°Ρ‚ΡŒ Π² Π΄ΠΈΠ°Π»ΠΎΠ³;
  reason*: int ## ΠΊΠΎΠ΄ ошибки для allowed = false. Π’ΠΎΠ·ΠΌΠΎΠΆΠ½Ρ‹Π΅ значСния:
               ## - 18 β€” ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»ΡŒ Π·Π°Π±Π»ΠΎΠΊΠΈΡ€ΠΎΠ²Π°Π½ ΠΈΠ»ΠΈ ΡƒΠ΄Π°Π»Π΅Π½;
               ## - 900 β€” нСльзя ΠΎΡ‚ΠΏΡ€Π°Π²ΠΈΡ‚ΡŒ сообщСниС ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»ΡŽ, ΠΊΠΎΡ‚ΠΎΡ€Ρ‹ΠΉ Π² Ρ‡Ρ‘Ρ€Π½ΠΎΠΌ спискС;
               ## - 901 β€” ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»ΡŒ Π·Π°ΠΏΡ€Π΅Ρ‚ΠΈΠ» сообщСния ΠΎΡ‚ сообщСства;
               ## - 902 β€” ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»ΡŒ Π·Π°ΠΏΡ€Π΅Ρ‚ΠΈΠ» ΠΏΡ€ΠΈΡΡ‹Π»Π°Ρ‚ΡŒ Π΅ΠΌΡƒ сообщСния с ΠΏΠΎΠΌΠΎΡ‰ΡŒΡŽ настроСк приватности;
               ## - 915 β€” Π² сообщСствС ΠΎΡ‚ΠΊΠ»ΡŽΡ‡Π΅Π½Ρ‹ сообщСния;
               ## - 916 β€” Π² сообщСствС Π·Π°Π±Π»ΠΎΠΊΠΈΡ€ΠΎΠ²Π°Π½Ρ‹ сообщСния;
               ## - 917 β€” Π½Π΅Ρ‚ доступа ΠΊ Ρ‡Π°Ρ‚Ρƒ;
               ## - 918 β€” Π½Π΅Ρ‚ доступа ΠΊ e-mail;
               ## - 203 β€” Π½Π΅Ρ‚ доступа ΠΊ сообщСству.
  
Career = object
  group_id*: int
  company*: string
  country_id*: int
  city_id*: int
  city_name*: string
  until*: int
  position*: string
CarouselElement = object
  title*: string             ## Π—Π°Π³ΠΎΠ»ΠΎΠ²ΠΎΠΊ, максимум 80 символов.
  description*: string       ## Подзаголовок, максимум 80 символов.
  photo_id*: string ## ID изобраТСния, ΠΊΠΎΡ‚ΠΎΡ€ΠΎΠ΅ Π½Π°Π΄ΠΎ ΠΏΡ€ΠΈΠΊΡ€Π΅ΠΏΠΈΡ‚ΡŒ.
                    ## ΠŸΡ€ΠΎΠΏΠΎΡ€Ρ†ΠΈΠΈ изобраТСния: 13/8;
                    ## ΠœΠΈΠ½ΠΈΠΌΠ°Π»ΡŒΠ½Ρ‹ΠΉ Ρ€Π°Π·ΠΌΠ΅Ρ€: 221Ρ…136;
                    ## Π—Π°Π³Ρ€ΡƒΠ·ΠΊΠ° ΠΈΠ·ΠΎΠ±Ρ€Π°ΠΆΠ΅Π½ΠΈΠΉ для карусСли происходит Ρ‚Π°ΠΊΠΆΠ΅,
                    ## ΠΊΠ°ΠΊ ΠΈ Π·Π°Π³Ρ€ΡƒΠ·ΠΊΠ° ΠΈΠ·ΠΎΠ±Ρ€Π°ΠΆΠ΅Π½ΠΈΠΉ Π±ΠΎΡ‚Π°ΠΌΠΈ Π² сообщСниях.
  action*: CarouselElementAction
  buttons*: seq[KeyboardButton] ## Один элСмСнт карусСли ΠΌΠΎΠΆΠ΅Ρ‚ ΡΠΎΠ΄Π΅Ρ€ΠΆΠ°Ρ‚ΡŒ Π½Π΅ большС 3-Ρ… ΠΊΠ½ΠΎΠΏΠΎΠΊ.
  
CarouselElementAction = object
  case
  of OpenLink:
      link*: string

  of OpenPhoto:
      nil

  
CarouselElementActionType {.pure.} = enum
  OpenLink, OpenPhoto
Category = object
  id*: int
  name*: string
  section*: CategorySection
CategorySection = object
  id*: int
  name*: string
Chat = object
  id*: int                   ## Π˜Π΄Π΅Π½Ρ‚ΠΈΡ„ΠΈΠΊΠ°Ρ‚ΠΎΡ€ бСсСды.
  ## Π’ΠΈΠΏ Π΄ΠΈΠ°Π»ΠΎΠ³Π°.
  title*: string             ## НазваниС бСсСды.
  admin_id*: int             ## Π˜Π΄Π΅Π½Ρ‚ΠΈΡ„ΠΈΠΊΠ°Ρ‚ΠΎΡ€ ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»Ρ, ΠΊΠΎΡ‚ΠΎΡ€Ρ‹ΠΉ являСтся создатСлСм бСсСды.
  users*: seq[int]           ## Бписок ΠΈΠ΄Π΅Π½Ρ‚ΠΈΡ„ΠΈΠΊΠ°Ρ‚ΠΎΡ€ΠΎΠ² (integer) участников бСсСды.
  push_settings*: PushSettings ## Настройки ΠΎΠΏΠΎΠ²Π΅Ρ‰Π΅Π½ΠΈΠΉ для Π΄ΠΈΠ°Π»ΠΎΠ³Π°.
  photo_50*: string          ## URL изобраТСния-ΠΎΠ±Π»ΠΎΠΆΠΊΠΈ Ρ‡Π°Ρ‚Π° ΡˆΠΈΡ€ΠΈΠ½ΠΎΠΉ 50 px (Ссли доступно).
  photo_100*: string         ## URL изобраТСния-ΠΎΠ±Π»ΠΎΠΆΠΊΠΈ Ρ‡Π°Ρ‚Π° ΡˆΠΈΡ€ΠΈΠ½ΠΎΠΉ 100 px (Ссли доступно).
  photo_200*: string         ## URL изобраТСния-ΠΎΠ±Π»ΠΎΠΆΠΊΠΈ Ρ‡Π°Ρ‚Π° ΡˆΠΈΡ€ΠΈΠ½ΠΎΠΉ 200 px (Ссли доступно).
  photo_base*: string        ## URL изобраТСния-ΠΎΠ±Π»ΠΎΠΆΠΊΠΈ Ρ‡Π°Ρ‚Π° ΡˆΠΈΡ€ΠΈΠ½ΠΎΠΉ 400 px (Ссли доступно). Π”ΠΎΠ±Π°Π²ΠΈΠ² GET-ΠΏΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€ cs=<size>x<size>, Π³Π΄Π΅ size=50|100|200 ΠΌΠΎΠΆΠ½ΠΎ ΠΏΠΎΠ»ΡƒΡ‡ΠΈΡ‚ΡŒ ΠΈΠ·ΠΎΠ±Ρ€Π°ΠΆΠ΅Π½ΠΈΠ΅ ΡΠΎΠΎΡ‚Π²Π΅Ρ‚ΡΡ‚Π²ΡƒΡŽΡ‰Π΅Π³ΠΎ Ρ€Π°Π·ΠΌΠ΅Ρ€Π°.
  left*: int                 ## Π€Π»Π°Π³, ΡƒΠΊΠ°Π·Ρ‹Π²Π°ΡŽΡ‰ΠΈΠΉ, Ρ‡Ρ‚ΠΎ ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»ΡŒ ΠΏΠΎΠΊΠΈΠ½ΡƒΠ» бСсСду. ВсСгда содСрТит 1.
  kicked*: int               ## Π€Π»Π°Π³, ΡƒΠΊΠ°Π·Ρ‹Π²Π°ΡŽΡ‰ΠΈΠΉ, Ρ‡Ρ‚ΠΎ ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»ΡŒ Π±Ρ‹Π» ΠΈΡΠΊΠ»ΡŽΡ‡Π΅Π½ ΠΈΠ· бСсСды. ВсСгда содСрТит 1.
  
ΠžΠ±ΡŠΠ΅ΠΊΡ‚, ΠΎΠΏΠΈΡΡ‹Π²Π°ΡŽΡ‰ΠΈΠΉ Ρ‡Π°Ρ‚, содСрТит ΡΠ»Π΅Π΄ΡƒΡŽΡ‰ΠΈΠ΅ поля:
ChatPhoto = object
  photo_50*: string
  photo_100*: string
  photo_200*: string
  photo_base*: string
ChatSettings = object
  members_count*: int        ## число участников
  title*: string             ## Π½Π°Π·Π²Π°Π½ΠΈΠ΅
  pinned_message*: PinnedMessage ## ΠΎΠ±ΡŠΠ΅ΠΊΡ‚ Π·Π°ΠΊΡ€Π΅ΠΏΠ»Ρ‘Π½Π½ΠΎΠ³ΠΎ сообщСния, Ссли Π΅ΡΡ‚ΡŒ
  state*: string ## статус Ρ‚Π΅ΠΊΡƒΡ‰Π΅Π³ΠΎ ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»Ρ. Π’ΠΎΠ·ΠΌΠΎΠΆΠ½Ρ‹Π΅ значСния:
                 ## - in β€” состоит Π² Ρ‡Π°Ρ‚Π΅;
                 ## - kicked β€” ΠΈΡΠΊΠ»ΡŽΡ‡Ρ‘Π½ ΠΈΠ· Ρ‡Π°Ρ‚Π°;
                 ## - left β€” ΠΏΠΎΠΊΠΈΠ½ΡƒΠ» Ρ‡Π°Ρ‚.
  photo*: ChatPhoto          ## ΠΈΠ·ΠΎΠ±Ρ€Π°ΠΆΠ΅Π½ΠΈΠ΅-ΠΎΠ±Π»ΠΎΠΆΠΊΠ° Ρ‡Π°Ρ‚Π°
  active_ids*: seq[int]      ## ΠΈΠ΄Π΅Π½Ρ‚ΠΈΡ„ΠΈΠΊΠ°Ρ‚ΠΎΡ€Ρ‹ послСдних ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»Π΅ΠΉ, ΠΏΠΈΡΠ°Π²ΡˆΠΈΡ… Π² Ρ‡Π°Ρ‚
  is_group_channel*: bool    ## информация ΠΎ Ρ‚ΠΎΠΌ, являСтся Π»ΠΈ бСсСда ΠΊΠ°Π½Π°Π»ΠΎΠΌ сообщСства.
  
ChatUpdate = object
  message_id*: int           ## ΠΈΠ΄Π΅Π½Ρ‚ΠΈΡ„ΠΈΠΊΠ°Ρ‚ΠΎΡ€ ΠΎΡ‚ΠΏΡ€Π°Π²Π»Π΅Π½Π½ΠΎΠ³ΠΎ систСмного сообщСния
  chat*: Chat                ## ΠΎΠ±ΡŠΠ΅ΠΊΡ‚ ΠΌΡƒΠ»ΡŒΡ‚ΠΈΠ΄ΠΈΠ°Π»ΠΎΠ³Π°.
  
City = object
  id*: int
  title*: string
CommentsPermission = object
  count*: int
  can_post*: int
  groups_can_post*: bool
  can_close*: bool
  can_open*: bool
Community = object
  id*: int
  name*: string
  screen_name*: string
  is_closed*: int
  deactivated*: string
  is_admin*: int
  admin_level*: int
  is_member*: int
  is_advertiser*: int
  invited_by*: int
  photo_50*: string
  photo_100*: string
  photo_200*: string
  activity*: string
  age_limits*: string
  ban_info*: BanInfo
  can_create_topic*: int
  can_message*: int
  can_post*: int
  can_suggest*: int
  can_see_all_posts*: int
  can_upload_doc*: int
  can_upload_video*: int
  can_upload_story*: int
  city*: City
  contacts*: seq[Contact]
  counters*: CommunityCounters
  country*: Country
  cover*: Cover
  crop_photo*: CropPhoto
  description*: string
  fixed_post*: int
  has_photo*: int
  is_favorite*: int
  is_hidden_from_feed*: int
  is_message_blocked*: int
  links*: seq[Link]
  main_section*: int
  market*: Market
  member_status*: int
  members_count*: int
  place*: Place
  public_date_label*: string
  site*: string
  start_date*: int
  finish_date*: int
  status*: string
  trending*: int
  verified*: int
  wall*: int
  wiki_page*: string
CommunityCounters = object
  albums*: int
  videos*: int
  audios*: int
  photos*: int
  docs*: int
  topics*: int
Contact = object
  user_id*: int
  desc*: string
  phone*: string
  email*: string
Contacts = object
  mobile_phone*: string
  home_phone*: string
ContentSource = object
  case
  of ContentSourceType.Message:
      owner_id*: int
      peer_id*: int
      conversation_message_id*: int

  of ContentSourceType.Url:
      url*: string

  
ContentSourceType {.pure.} = enum
  Message, Url
Conversation = object
  peer*: Peer                ## Π˜Π½Ρ„ΠΎΡ€ΠΌΠ°Ρ†ΠΈΡ ΠΎ собСсСдникС
  in_read*: int              ## Π˜Π΄Π΅Π½Ρ‚ΠΈΡ„ΠΈΠΊΠ°Ρ‚ΠΎΡ€ послСднСго ΠΏΡ€ΠΎΡ‡Ρ‚Π΅Π½Π½ΠΎΠ³ΠΎ входящСго сообщСния.
  out_read*: int             ## Π˜Π΄Π΅Π½Ρ‚ΠΈΡ„ΠΈΠΊΠ°Ρ‚ΠΎΡ€ послСднСго ΠΏΡ€ΠΎΡ‡Ρ‚Π΅Π½Π½ΠΎΠ³ΠΎ исходящСго сообщСния.
  unread_count*: int         ## Число Π½Π΅ΠΏΡ€ΠΎΡ‡ΠΈΡ‚Π°Π½Π½Ρ‹Ρ… сообщСний.
  important*: bool           ## true, Ссли Π΄ΠΈΠ°Π»ΠΎΠ³ ΠΏΠΎΠΌΠ΅Ρ‡Π΅Π½ ΠΊΠ°ΠΊ Π²Π°ΠΆΠ½Ρ‹ΠΉ (Ρ‚ΠΎΠ»ΡŒΠΊΠΎ для сообщСний сообщСств).
  unanswered*: bool          ## true, Ссли Π΄ΠΈΠ°Π»ΠΎΠ³ ΠΏΠΎΠΌΠ΅Ρ‡Π΅Π½ ΠΊΠ°ΠΊ Π½Π΅ΠΎΡ‚Π²Π΅Ρ‡Π΅Π½Π½Ρ‹ΠΉ (Ρ‚ΠΎΠ»ΡŒΠΊΠΎ для сообщСний сообщСств).
  push_settings*: PushSettings ## Настройки Push-ΡƒΠ²Π΅Π΄ΠΎΠΌΠ»Π΅Π½ΠΈΠΉ.
  can_write*: CanWrite       ## Π˜Π½Ρ„ΠΎΡ€ΠΌΠ°Ρ†ΠΈΡ ΠΎ Ρ‚ΠΎΠΌ, ΠΌΠΎΠΆΠ΅Ρ‚ Π»ΠΈ ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»ΡŒ ΠΏΠΈΡΠ°Ρ‚ΡŒ Π² Π΄ΠΈΠ°Π»ΠΎΠ³
  chat_settings*: ChatSettings ## Настройки Ρ‡Π°Ρ‚Π°.
  
ΠžΠ±ΡŠΠ΅ΠΊΡ‚ описываСт бСсСду с ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»Π΅ΠΌ, сообщСством ΠΈΠ»ΠΈ Π³Ρ€ΡƒΠΏΠΏΠΎΠ²ΠΎΠΉ Ρ‡Π°Ρ‚
Coordinates = object
  latitude*: int
  longitude*: int
Country = object
  id*: int
  title*: string
Cover = object
  enabled*: int
  images*: seq[CoverImage]
CoverImage = object
  url*: string
  width*: int
  height*: int
CreatedChat = object
  chat_id*: int
  peer_ids*: seq[int]
CropPhoto = object
  photo*: Photo
  crop*: Rect
  rect*: Rect
Delivery = object
  address*: string
  track_number*: string
  track_link*: string
  delivery_point*: JsonNode
Dimensions = object
  width*: int
  height*: int
  length*: int
Education = object
  university*: int
  university_name*: string
  faculty*: int
  faculty_name*: string
  graduation*: int
ErrorObject = object
  error_code*: int
  error_msg*: string
ForwardBotMessage = object
  owner_id*: int
  peer_id*: int
  conversation_message_ids*: seq[int]
  message_ids*: seq[int]
  
Gender {.pure, size: 1.} = enum
  Female, Male, AnyGender
Geo = object
  coordinates*: string
  place*: Place
GeoMessage = object
  coordinates*: Coordinates
  place*: Place
  showmap*: int
Keyboard = object
  one_time*: bool
  inline*: bool
  buttons*: seq[KeyboardButton]
KeyboardAction = object
  payload*: string
  label*: string
  hash*: string
  app_id*: int
  owner_id*: int
  link*: string
  
KeyboardButton = object
  action*: KeyboardAction
  color*: ButtonColor
LifeMain {.pure, size: 8.} = enum
  Family = 1, Money = 2, Recreation = 3, Research = 4, Improving = 5,
  SelfDevelopment = 6, Beauty = 7, Influence = 8
LikesInfo = object
  count*: int
  user_likes*: int
  can_like*: int
  can_publish*: int
LongPollServer = object
  key*: string
  server*: string
  ts*: string
MaritalStatus {.pure, size: 1.} = enum
  NotMatter = 0, NotMarried = 1, Dating = 2, Engaged = 3, Married = 4,
  Difficult = 5, ActiveSearch = 6, InLove = 7, CivilMarriage = 8
Market = object
  enabled*: int
  price_min*: int
  price_max*: int
  main_album_id*: int
  contact_id*: int
  currency*: Wallet
  currency_text*: string
Message = object
  id*: int
  date*: int
  peer_id*: int
  from_id*: int
  text*: string
  ref_source*: string
  attachments*: seq[Attachment]
  important*: bool
  geo*: GeoMessage
  payload*: string
  keyboard*: Keyboard
  fwd_messages*: seq[MessageRef]
  reply_message*: MessageRef
  action*: MessageAction
  admin_author_id*: int
  conversation_message_id*: int
  is_cropped*: bool
  members_count*: int
  update_time*: int
  was_listened*: bool
  pinned_at*: int
  message_tag*: string
  is_mentioned_user*: bool
MessageAction = object
  member_id*: int
  text*: string
  email*: string
  photo*: MessageActionPhoto
MessageActionPhoto = object
  photo_50*: string
  photo_100*: string
  photo_200*: string
Military = object
  unit*: string
  unit_id*: int
  country_id*: int
  until*: int
Note = object
  id*: int                   ## Π˜Π΄Π΅Π½Ρ‚ΠΈΡ„ΠΈΠΊΠ°Ρ‚ΠΎΡ€ Π·Π°ΠΌΠ΅Ρ‚ΠΊΠΈ.
  owner_id*: int             ## Π˜Π΄Π΅Π½Ρ‚ΠΈΡ„ΠΈΠΊΠ°Ρ‚ΠΎΡ€ Π²Π»Π°Π΄Π΅Π»ΡŒΡ†Π° Π·Π°ΠΌΠ΅Ρ‚ΠΊΠΈ.
  title*: string             ## Π—Π°Π³ΠΎΠ»ΠΎΠ²ΠΎΠΊ Π·Π°ΠΌΠ΅Ρ‚ΠΊΠΈ.
  text*: string              ## ВСкст Π·Π°ΠΌΠ΅Ρ‚ΠΊΠΈ.
  date*: int                 ## Π”Π°Ρ‚Π° создания Π·Π°ΠΌΠ΅Ρ‚ΠΊΠΈ Π² Ρ„ΠΎΡ€ΠΌΠ°Ρ‚Π΅ Unixtime.
  comments*: int             ## ΠšΠΎΠ»ΠΈΡ‡Π΅ΡΡ‚Π²ΠΎ ΠΊΠΎΠΌΠΌΠ΅Π½Ρ‚Π°Ρ€ΠΈΠ΅Π².
  read_comments*: int        ## ΠšΠΎΠ»ΠΈΡ‡Π΅ΡΡ‚Π²ΠΎ ΠΏΡ€ΠΎΡ‡ΠΈΡ‚Π°Π½Π½Ρ‹Ρ… ΠΊΠΎΠΌΠΌΠ΅Π½Ρ‚Π°Ρ€ΠΈΠ΅Π² (Ρ‚ΠΎΠ»ΡŒΠΊΠΎ ΠΏΡ€ΠΈ запросС ΠΈΠ½Ρ„ΠΎΡ€ΠΌΠ°Ρ†ΠΈΠΈ ΠΎ Π·Π°ΠΌΠ΅Ρ‚ΠΊΠ΅ Ρ‚Π΅ΠΊΡƒΡ‰Π΅Π³ΠΎ ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»Ρ).
  view_url*: string          ## URL страницы для отобраТСния Π·Π°ΠΌΠ΅Ρ‚ΠΊΠΈ.
  privacy_view*: string      ## Настройки приватности коммСнтирования Π·Π°ΠΌΠ΅Ρ‚ΠΊΠΈ
  can_comment*: int          ## Π•ΡΡ‚ΡŒ Π»ΠΈ Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡ‚ΡŒ ΠΎΡΡ‚Π°Π²Π»ΡΡ‚ΡŒ ΠΊΠΎΠΌΠΌΠ΅Π½Ρ‚Π°Ρ€ΠΈΠΈ
  text_wiki*: string         ## Вэги ссылок Π½Π° wiki
  
ΠžΠ±ΡŠΠ΅ΠΊΡ‚, ΠΎΠΏΠΈΡΡ‹Π²Π°ΡŽΡ‰ΠΈΠΉ Π·Π°ΠΌΠ΅Ρ‚ΠΊΡƒ, содСрТит ΡΠ»Π΅Π΄ΡƒΡŽΡ‰ΠΈΠ΅ поля:
Occupation = object
  id*: int
  name*: string
OccupationType {.pure.} = enum
  Work = "work", School = "school", University = "university"
Order = object
  id*: int
  group_id*: int
  user_id*: int
  date*: int
  variants_grouping_id*: int
  is_main_variant*: bool
  property_values*: seq[PropertyValue]
  cart_quantity*: int
  status*: OrderStatus
  total_price*: Price
  display_order_id*: string
  comment*: string
  preview_order_items*: seq[Product]
  delivery*: Delivery
  recipient*: Recipient
OrderStatus {.pure, size: 1.} = enum
  NewOrder = 0, Agreed = 1, Assembled = 2, Delivered = 3, Completed = 4,
  Canceled = 5, Removed = 6
Peer = object
  id*: int                   ## ΠΈΠ΄Π΅Π½Ρ‚ΠΈΡ„ΠΈΠΊΠ°Ρ‚ΠΎΡ€ назначСния
  ## Ρ‚ΠΈΠΏ. Π’ΠΎΠ·ΠΌΠΎΠΆΠ½Ρ‹Π΅ значСния: user, chat, group, email
  local_id*: int             ## Π»ΠΎΠΊΠ°Π»ΡŒΠ½Ρ‹ΠΉ ΠΈΠ΄Π΅Π½Ρ‚ΠΈΡ„ΠΈΠΊΠ°Ρ‚ΠΎΡ€ назначСния. Для Ρ‡Π°Ρ‚ΠΎΠ² β€” id - 2000000000, для сообщСств β€” -id, для email β€” -(id+2000000000).
  
PeopleMain {.pure, size: 8.} = enum
  IntelligenceAndCreativity = 1, KiddnessAndHonesty = 2, BeautyAndHealth = 3,
  PowerAndWealth = 4, CourageAndPerseverance = 5, HumorAndLoveOfLife = 6
Personal = object
  political*: Political
  langs*: seq[string]
  religion*: string
  inspired_by*: string
  people_main*: PeopleMain
  life_main*: LifeMain
  smoking*: int
  alcohol*: int
Photo = object
  id*: int
  album_id*: int
  owner_id*: int
  user_id*: int
  text*: string
  date*: int
  sizes*: seq[PhotoSize]
  width*: int
  height*: int
PhotoSize = object
  url*: string
  width*: int
  heigth*: int
PinnedMessage = object
  id*: int ## Π˜Π΄Π΅Π½Ρ‚ΠΈΡ„ΠΈΠΊΠ°Ρ‚ΠΎΡ€ сообщСния.
           ## Π‘ΠΎΠ΄Π΅Ρ€ΠΆΠΈΡ‚ 0, Ссли Ρƒ Ρ‚Π΅ΠΊΡƒΡ‰Π΅Π³ΠΎ ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»Ρ Π½Π΅Ρ‚ этого сообщСния Π² истории
           ## (Π½Π°ΠΏΡ€ΠΈΠΌΠ΅Ρ€, ΠΎΠ½ΠΎ Π±Ρ‹Π»ΠΎ ΠΎΡ‚ΠΏΡ€Π°Π²Π»Π΅Π½ΠΎ Π² ΠΌΡƒΠ»ΡŒΡ‚ΠΈΡ‡Π°Ρ‚ Π΄ΠΎ Ρ‚ΠΎΠ³ΠΎ, ΠΊΠ°ΠΊ ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»Ρ пригласили).
  date*: int                 ## ВрСмя ΠΎΡ‚ΠΏΡ€Π°Π²ΠΊΠΈ сообщСния Π² Unixtime.
  from_id*: int              ## Π˜Π΄Π΅Π½Ρ‚ΠΈΡ„ΠΈΠΊΠ°Ρ‚ΠΎΡ€ отправитСля.
  text*: string              ## ВСкст сообщСния.
  attachments*: seq[Attachment] ## МСдиавлоТСния сообщСния (Ρ„ΠΎΡ‚ΠΎΠ³Ρ€Π°Ρ„ΠΈΠΈ, ссылки ΠΈ Ρ‚.ΠΏ.).
  geo*: GeoMessage           ## Π˜Π½Ρ„ΠΎΡ€ΠΌΠ°Ρ†ΠΈΡ ΠΎ мСстополоТСнии
  fwd_messages*: seq[MessageRef] ## Массив пСрСсланных сообщСний (Ссли Π΅ΡΡ‚ΡŒ).
                                 ## МаксимальноС количСство элСмСнтов β€” 100.
                                 ## Максимальная Π³Π»ΡƒΠ±ΠΈΠ½Π° влоТСнности для пСрСсланных сообщСний β€” 45,
                                 ## ΠΎΠ±Ρ‰Π΅Π΅ максимальноС количСство Π² Ρ†Π΅ΠΏΠΎΡ‡ΠΊΠ΅ с ΡƒΡ‡Π΅Ρ‚ΠΎΠΌ влоТСнности β€” 500.
  
Place = object
  id*: int
  title*: string
  latitude*: float
  longitude*: float
  country*: int
  city*: int
  address*: string
  updated*: int
  checkins*: int
  icon*: int
  created*: int
Platform {.pure, size: 8.} = enum
  MobileVersion = 1, Iphone = 2, Ipad = 3, Android = 4, WindowsPhone = 5,
  Windows10 = 6, FullVersion = 7
Political {.pure, size: 8.} = enum
  Communist = 1, Socialist = 2, Moderate = 3, Liberal = 4, Conservative = 5,
  Monorchical = 6, Ultraconservative = 7, Indifferent = 8, Libertarian = 9
Price = object
  amount*: string
  currency*: Wallet
  old_amount*: string
  text*: string
Product = object
  id*: int
  owner_id*: int
  title*: string
  description*: string
  price*: Price
  dimensions*: Dimensions
  weight*: int
  category*: Category
  thumb_photo*: string
  date*: int
  availability*: int
  is_favorite*: bool
  sku*: string
  reject_info*: RejectInfo
  photos*: seq[Photo]
  can_comment*: int
  can_repost*: int
  likes*: LikesInfo
  url*: string
  button_title*: string
ProductSelection = object
  id*: int
  owner_id*: int
  title*: string
  is_main*: bool
  is_hidden*: bool
  photo*: Photo
  count*: int
PropertyValue = object
  variant_id*: int
  variant_name*: string
  property_name*: string
PushSettings = object
  disabled_until*: int       ## ΡƒΠΊΠ°Π·Ρ‹Π²Π°Π΅Ρ‚, Π΄ΠΎ ΠΊΠ°ΠΊΠΎΠ³ΠΎ Π²Ρ€Π΅ΠΌΠ΅Π½ΠΈ оповСщСния для Ρ‡Π°Ρ‚Π° ΠΎΡ‚ΠΊΠ»ΡŽΡ‡Π΅Π½Ρ‹. -1 β€” ΠΎΡ‚ΠΊΠ»ΡŽΡ‡Π΅Π½Ρ‹ навсСгда (бСссрочно).
  disabled_forever*: bool
  no_sound*: bool            ## ΡƒΠΊΠ°Π·Ρ‹Π²Π°Π΅Ρ‚, Π²ΠΊΠ»ΡŽΡ‡Π΅Π½ Π»ΠΈ Π·Π²ΡƒΠΊ ΠΎΠΏΠΎΠ²Π΅Ρ‰Π΅Π½ΠΈΠΉ (1 β€” Π²ΠΊΠ»ΡŽΡ‡Π΅Π½, 0 β€” ΠΎΡ‚ΠΊΠ»ΡŽΡ‡Π΅Π½)
  
Настройки ΠΎΠΏΠΎΠ²Π΅Ρ‰Π΅Π½ΠΈΠΉ.
Recipient = object
  name*: string
  phone*: string
  display_text*: string
Rect = object
  x*: float
  y*: float
  x2*: float
  y2*: float
RejectInfo = object
  title*: string
  description*: string
  buttons*: JsonNode
  moderation_status*: int
  info_link*: string
  white_to_support_link*: string
Relative = object
  id*: int
  name*: string
  
RelativeType {.pure.} = enum
  Child = "child", Sibling = "sibling", Parent = "parent",
  GrandParent = "grandparent", GrandChild = "grandchild"
ReportType {.pure.} = enum
  rPorn = "porn", rSpam = "spam", rInsult = "insult",
  rAdvertisement = "adverisement"
RepostsInfo = object
  count*: int
  user_reposted*: int
SearchHint = object
  case
  of SearchHintType.Group:
      group*: SearchHintGroup

  of SearchHintType.Profile:
      profile*: SearchHintProfile

  section*: string
  description*: string
  global*: int
SearchHintGroup = object
  id*: int
  name*: string
  is_closed*: int
  is_admin*: int
  is_member*: int
  photo*: string
  photo_medium*: string
  photo_big*: string
SearchHintProfile = object
  id*: int
  first_name*: string
  last_name*: string
SearchHintType {.pure.} = enum
  Group = "group", Profile = "profile"
SearchUserSort {.pure, size: 1.} = enum
  RegDate, Popularity
Seen = object
  time*: int
  platform*: Platform
Template = object
  case
  of TemplateType.Carousel:
      elements*: seq[CarouselElement]

  
TemplateType {.pure.} = enum
  Carousel
University = object
  id*: int
  country*: int
  city*: int
  name*: string
  faculty*: int
  faculty_name*: string
  chair*: int
  chair_name*: string
  graduation*: int
  education_form*: string
  education_status*: string
User = object
  id*: int
  first_name*: string
  last_name*: string
  deactivated*: string
  is_closed*: bool
  can_access_closed*: bool
  about*: string
  activities*: string
  bdate*: string
  blacklisted*: int
  blacklisted_by_me*: int
  books*: string
  can_post*: int
  can_see_all_posts*: int
  can_see_audio*: int
  can_send_friend_request*: int
  can_write_privite_message*: int
  career*: Career
  city*: City
  common_count*: int
  contacts*: Contacts
  counters*: UserCounters
  country*: Country
  crop_photo*: CropPhoto
  domain*: string
  education*: Education
  followers_count*: int
  friend_status*: int
  games*: string
  has_mobile*: int
  has_photo*: int
  home_town*: string
  interests*: string
  is_favorite*: int
  is_friend*: int
  is_hidden_from_feed*: int
  is_no_index*: int
  last_seen*: Seen
  lists*: string
  maiden_name*: string
  military*: Military
  movies*: string
  music*: string
  nickname*: string
  occupation*: Occupation
  online*: int
  personal*: Personal
  photo_50*: string
  photo_100*: string
  photo_200*: string
  photo_200_orig*: string
  photo_400_orig*: string
  photo_400*: string
  photo_id*: int
  photo_max*: string
  photo_max_orig*: string
  quotes*: string
  relatives*: seq[Relative]
  relation*: int
  schools*: seq[School]
  screen_name*: string
  sex*: int
  site*: string
  status*: string
  timezone*: int
  trending*: int
  tv*: string
  universities*: seq[University]
  verified*: int
  wall_default*: string
UserCounters = object
  albums*: int
  videos*: int
  audios*: int
  photos*: int
  notes*: int
  friends*: int
  gifts*: int
  groups*: int
  online_friends*: int
  mutual_friends*: int
  user_videos*: int
  user_photos*: int
  followers*: int
  pages*: int
  subscriptions*: int
ViewsInfo = object
  count*: int
VkDonut = object
  is_donut*: bool
  paid_duration*: int
  placeholder*: JsonNode
  can_publish_free_copy*: bool
  edit_mode*: string
VkDonutComment = object
  is_don*: bool
  placeholder*: string
VkResponse = object
  response*: JsonNode
  error*: ErrorObject
WallComment = object
  id*: int
  from_id*: int
  date*: int
  text*: int
  donut*: VkDonutComment
  reply_to_user*: int
  reply_to_comment*: int
  attachments*: seq[Attachment]
  parents_stack*: seq[int]
  thread*: WallCommentThread
WallCommentThread = object
  count*: int
  items*: seq[WallCommentRef]
  can_post*: bool
  show_reply_button*: bool
  groups_can_post*: bool
Wallet = object
  id*: int
  name*: string
WallPost = object
  id*: int
  owner_id*: int
  from_id*: int
  created_by*: int
  date*: int
  text*: int
  reply_owner_id*: int
  reply_post_id*: int
  friends_only*: int
  comments*: CommentsPermission
  copyright*: Copyright
  likes*: LikesInfo
  resposts*: RepostsInfo
  views*: ViewsInfo
  post_type*: string
  post_source*: string
  attachments*: seq[Attachment]
  geo*: Geo
  signer_id*: int
  copy_history*: seq[WallPostRef]
  can_pin*: int
  can_delete*: int
  can_edit*: int
  is_pinned*: int
  marked_as_ads*: int
  is_favorite*: bool
  donut*: VkDonut
  postponed_id*: int
WhoCanWiki {.pure.} = enum
  All, Members, Admins
WikiPage = object
  id*: int
  group_id*: int
  creator_id*: int
  title*: string
  current_user_can_edit*: int
  current_user_can_edit_access*: int
  who_can_view*: WhoCanWiki
  who_can_edit*: WhoCanWiki
  edited*: int
  created*: int
  editor_id*: int
  views*: int
  parent*: string
  parent2*: string
  source*: string
  html*: string
  view_url*: string

Procs

proc enumHook(s: string; v: var ButtonColor) {....raises: [], tags: [], forbids: [].}
proc enumHook(s: string; v: var CarouselElementActionType) {....raises: [],
    tags: [], forbids: [].}
proc enumHook(s: string; v: var ContentSourceType) {....raises: [], tags: [],
    forbids: [].}
proc enumHook(s: string; v: var Gender) {....raises: [], tags: [], forbids: [].}
proc enumHook(s: string; v: var LifeMain) {....raises: [], tags: [], forbids: [].}
proc enumHook(s: string; v: var MaritalStatus) {....raises: [], tags: [],
    forbids: [].}
proc enumHook(s: string; v: var OccupationType) {....raises: [], tags: [],
    forbids: [].}
proc enumHook(s: string; v: var OrderStatus) {....raises: [], tags: [], forbids: [].}
proc enumHook(s: string; v: var PeopleMain) {....raises: [], tags: [], forbids: [].}
proc enumHook(s: string; v: var Platform) {....raises: [], tags: [], forbids: [].}
proc enumHook(s: string; v: var Political) {....raises: [], tags: [], forbids: [].}
proc enumHook(s: string; v: var RelativeType) {....raises: [], tags: [],
    forbids: [].}
proc enumHook(s: string; v: var ReportType) {....raises: [], tags: [], forbids: [].}
proc enumHook(s: string; v: var SearchHintType) {....raises: [], tags: [],
    forbids: [].}
proc enumHook(s: string; v: var SearchUserSort) {....raises: [], tags: [],
    forbids: [].}
proc enumHook(s: string; v: var TemplateType) {....raises: [], tags: [],
    forbids: [].}
proc enumHook(s: string; v: var WhoCanWiki) {....raises: [], tags: [], forbids: [].}
proc initKeyboard(one_time, inline: bool; buttons: seq[KeyboardButton] = @[]): Keyboard {.
    ...raises: [], tags: [], forbids: [].}

Macros

macro buildKeyboard(body: untyped): untyped
macro buildKeyboard(one_time, inline: static[bool]; body: untyped)
Builds keyboard

Example

buildKeyboard true, true:
  line:  # line of buttons
    text:  # type of button. Can be "text", "open_link", "open_app", "location", "vkpay" or "callback"
      label = "Button text here"
      payload = "Hello!"
      color = ButtonColor.Primary