Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Telegram schema to the latest layer #739

Merged
merged 2 commits into from Apr 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.