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
Copyright = object id*: int link*: string name*: string
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]
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
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
Link = object id*: int url*: string name*: string desc*: string photo_50*: string photo_100*: string
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
MessageRef = ref Message
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
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
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
WallCommentRef = ref WallComment
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
WallPostRef = ref WallPost
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 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 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