Layer 220
constructor
updates.difference#f49ca0 new_messages:Vector<Message> new_encrypted_messages:Vector<EncryptedMessage> other_updates:Vector<Update> chats:Vector<Chat> users:Vector<User> state:updates.State = updates.Difference;

Parameters

Name Type Description
NewMessages Vector<Message> List of new messages
NewEncryptedMessages Vector<EncryptedMessage> List of new encrypted secret chat messages
OtherUpdates Vector<Update> List of updates
Chats Vector<Chat> List of chats mentioned in events
Users Vector<User> List of users mentioned in events
State updates.State Current state

Gogram Example

// Creating UpdatesDifference constructor
obj := &tg.UpdatesDifference{
    NewMessages: []tg.Message{&tg.Message{}},
    NewEncryptedMessages: []tg.EncryptedMessage{&tg.EncryptedMessage{}},
    OtherUpdates: []tg.Update{&tg.UpdateNewMessage{}},
    Chats: []tg.Chat{&tg.Chat{}},
    Users: []tg.User{&tg.User{}},
    State: nil,
}