Skip to content

Commit

Permalink
Merge pull request #90 from cipi1965/api-v4.5
Browse files Browse the repository at this point in the history
Update Telegram API to v4.5
  • Loading branch information
cipi1965 authored Dec 31, 2019
2 parents 808c032 + 4b3da14 commit ac95e94
Show file tree
Hide file tree
Showing 3 changed files with 3,608 additions and 3,495 deletions.
35 changes: 28 additions & 7 deletions API/TelegramAPIDefinition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ fields:
invite_link: String?
pinned_message: Message?
permissions: ChatPermissions?
slow_mode_delay: Int?
sticker_set_name: String?
can_set_sticker_set: Bool?

Expand Down Expand Up @@ -120,15 +121,17 @@ fields:
---
type: PhotoSize
fields:
file_id: Int
file_id: String
file_unique_id: String
width: Int
height: Int
file_size: Int?

---
type: Audio
fields:
file_id: Int
file_id: String
file_unique_id: String
duration: Int
performer: String?
title: String?
Expand All @@ -139,7 +142,8 @@ fields:
---
type: Document
fields:
file_id: Int
file_id: String
file_unique_id: String
thumb: PhotoSize?
file_name: String?
mime_type: String?
Expand All @@ -148,7 +152,8 @@ fields:
---
type: Video
fields:
file_id: Int
file_id: String
file_unique_id: String
width: Int
height: Int
duration: Int
Expand All @@ -159,7 +164,8 @@ fields:
---
type: Animation
fields:
file_id: Int
file_id: String
file_unique_id: String
width: Int
height: Int
duration: Int
Expand All @@ -171,15 +177,17 @@ fields:
---
type: Voice
fields:
file_id: Int
file_id: String
file_unique_id: String
duration: Int
mime_type: String?
file_size: Int?

---
type: VideoNote
fields:
file_id: Int
file_id: String
file_unique_id: String
length: Int
duration: Int
thumb: PhotoSize?
Expand Down Expand Up @@ -233,6 +241,7 @@ fields:
type: File
fields:
file_id: String
file_unique_id: String
file_size: Int?
file_path: String?

Expand Down Expand Up @@ -303,13 +312,16 @@ fields:
type: ChatPhoto
fields:
small_file_id: String
small_file_unique_id: String
big_file_id: String
big_file_unique_id: String

---
type: ChatMember
fields:
user: User
status: String
custom_title: String?
until_date: Date?
can_be_edited: Bool?
can_post_messages: Bool?
Expand Down Expand Up @@ -403,6 +415,7 @@ fields:
type: Sticker
fields:
file_id: String
file_unique_id: String
width: Int
height: Int
is_animated: Bool
Expand Down Expand Up @@ -1134,6 +1147,14 @@ parameters:
can_promote_members: Bool?
result: Bool?

---
method: setChatAdministratorCustomTitle
parameters:
chat_id: ChatId
user_id: Int
custom_title: String
result: Bool?

---
method: setChatPermissions
parameters:
Expand Down
Loading

0 comments on commit ac95e94

Please sign in to comment.