'message_removed', 'timestamp' => 1678888000, 'message_id' => 'mid.was.here.now.gone', 'chat_id' => 123456789, 'user_id' => 98765, ]; $update = MessageRemovedUpdate::fromArray($data); $this->assertInstanceOf(MessageRemovedUpdate::class, $update); $this->assertSame(UpdateType::MessageRemoved, $update->updateType); $this->assertSame(1678888000, $update->timestamp); $this->assertSame('mid.was.here.now.gone', $update->messageId); $this->assertSame(123456789, $update->chatId); $this->assertSame(98765, $update->userId); $this->assertEquals($data, $update->toArray()); } }