Skip to content

Commit

Permalink
Merge pull request #739 from gotd/feat/update-schema
Browse files Browse the repository at this point in the history
Update Telegram schema to the latest layer
  • Loading branch information
tdakkota committed Apr 15, 2022
2 parents 795d544 + 345b1da commit ce39bca
Show file tree
Hide file tree
Showing 77 changed files with 12,581 additions and 248 deletions.
108 changes: 97 additions & 11 deletions _schema/tdesktop.tl

Large diffs are not rendered by default.

108 changes: 97 additions & 11 deletions _schema/telegram.tl

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions telegram/peers/bot_test.go
Expand Up @@ -35,6 +35,7 @@ func TestBot_BotInfo(t *testing.T) {
UserID: u.raw.ID,
Description: "Test bot",
Commands: nil,
MenuButton: &tg.BotMenuButtonDefault{},
})
mock.ExpectCall(&tg.UsersGetFullUserRequest{ID: input}).ThenResult(&tg.UsersUserFull{
FullUser: testUserFull,
Expand Down
5 changes: 0 additions & 5 deletions telegram/peers/chat.go
Expand Up @@ -167,11 +167,6 @@ func (c Chat) Creator() bool {
return c.raw.GetCreator()
}

// Kicked the current user was kicked from the group.
func (c Chat) Kicked() bool {
return c.raw.GetKicked()
}

// Left whether the current user has left this group.
func (c Chat) Left() bool {
return c.raw.GetLeft()
Expand Down
2 changes: 0 additions & 2 deletions telegram/peers/chat_test.go
Expand Up @@ -14,7 +14,6 @@ func TestChatGetters(t *testing.T) {
u := Chat{
raw: &tg.Chat{
Creator: true,
Kicked: true,
Left: true,
Deactivated: true,
CallActive: true,
Expand All @@ -41,7 +40,6 @@ func TestChatGetters(t *testing.T) {
a.Equal(u.raw.GetID(), u.ID())

a.Equal(u.raw.Creator, u.Creator())
a.Equal(u.raw.Kicked, u.Kicked())
a.Equal(u.raw.Left, u.Left())
a.Equal(u.raw.Deactivated, u.Deactivated())
a.Equal(u.raw.CallActive, u.CallActive())
Expand Down
168 changes: 168 additions & 0 deletions telegram/query/cached/queries.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

176 changes: 176 additions & 0 deletions tg/tl_account_get_saved_ringtones_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ce39bca

Please sign in to comment.